mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
treewide: remove rec when using finalAttrs
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
parent
c31d0742c5
commit
d75957a3bb
21 changed files with 71 additions and 73 deletions
|
@ -23,12 +23,12 @@
|
||||||
pkg-config,
|
pkg-config,
|
||||||
poppler,
|
poppler,
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation (finalAttrs: rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "auto-multiple-choice";
|
pname = "auto-multiple-choice";
|
||||||
version = "1.7.0";
|
version = "1.7.0";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://download.auto-multiple-choice.net/${pname}_${version}_dist.tar.gz";
|
url = "https://download.auto-multiple-choice.net/auto-multiple-choice_${finalAttrs.version}_dist.tar.gz";
|
||||||
# before 1.7.0, the URL pattern used "precomp" instead of "dist". ^^^^
|
# before 1.7.0, the URL pattern used "precomp" instead of "dist".
|
||||||
sha256 = "sha256-37kWqgdvZopvNSU6LA/FmY2wfSJz3rRSlaQF2HSbdmA=";
|
sha256 = "sha256-37kWqgdvZopvNSU6LA/FmY2wfSJz3rRSlaQF2HSbdmA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@
|
||||||
testers,
|
testers,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "besu";
|
pname = "besu";
|
||||||
version = "24.1.2";
|
version = "24.1.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://hyperledger.jfrog.io/artifactory/${pname}-binaries/${pname}/${version}/${pname}-${version}.tar.gz";
|
url = "https://hyperledger.jfrog.io/artifactory/besu-binaries/besu/${finalAttrs.version}/besu-${finalAttrs.version}.tar.gz";
|
||||||
sha256 = "sha256-CC24z0+2dSeqDddX5dJUs7SX9QJ8Iyh/nAp0pqdDvwg=";
|
sha256 = "sha256-CC24z0+2dSeqDddX5dJUs7SX9QJ8Iyh/nAp0pqdDvwg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -26,20 +26,20 @@ stdenv.mkDerivation (finalAttrs: rec {
|
||||||
cp -r bin $out/
|
cp -r bin $out/
|
||||||
mkdir -p $out/lib
|
mkdir -p $out/lib
|
||||||
cp -r lib $out/
|
cp -r lib $out/
|
||||||
wrapProgram $out/bin/${pname} \
|
wrapProgram $out/bin/besu \
|
||||||
--set JAVA_HOME "${jre}" \
|
--set JAVA_HOME "${jre}" \
|
||||||
--suffix ${
|
--suffix ${
|
||||||
if stdenv.hostPlatform.isDarwin then "DYLD_LIBRARY_PATH" else "LD_LIBRARY_PATH"
|
if stdenv.hostPlatform.isDarwin then "DYLD_LIBRARY_PATH" else "LD_LIBRARY_PATH"
|
||||||
} : ${lib.makeLibraryPath buildInputs}
|
} : ${lib.makeLibraryPath finalAttrs.buildInputs}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.tests = {
|
passthru.tests = {
|
||||||
version = testers.testVersion {
|
version = testers.testVersion {
|
||||||
package = finalAttrs.finalPackage;
|
package = finalAttrs.finalPackage;
|
||||||
version = "v${version}";
|
version = "v${finalAttrs.version}";
|
||||||
};
|
};
|
||||||
jemalloc =
|
jemalloc =
|
||||||
runCommand "${pname}-test-jemalloc"
|
runCommand "besu-test-jemalloc"
|
||||||
{
|
{
|
||||||
nativeBuildInputs = [ finalAttrs.finalPackage ];
|
nativeBuildInputs = [ finalAttrs.finalPackage ];
|
||||||
meta.platforms = with lib.platforms; linux;
|
meta.platforms = with lib.platforms; linux;
|
||||||
|
|
|
@ -11,12 +11,12 @@
|
||||||
texlive,
|
texlive,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "eukleides";
|
pname = "eukleides";
|
||||||
version = "1.5.4";
|
version = "1.5.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.eukleides.org/files/${pname}-${version}.tar.bz2";
|
url = "http://www.eukleides.org/files/eukleides-${finalAttrs.version}.tar.bz2";
|
||||||
sha256 = "0s8cyh75hdj89v6kpm3z24i48yzpkr8qf0cwxbs9ijxj1i38ki0q";
|
sha256 = "0s8cyh75hdj89v6kpm3z24i48yzpkr8qf0cwxbs9ijxj1i38ki0q";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
jre,
|
jre,
|
||||||
unzip,
|
unzip,
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation (finalAttrs: rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "geoserver";
|
pname = "geoserver";
|
||||||
version = "2.27.0";
|
version = "2.27.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/geoserver/GeoServer/${version}/geoserver-${version}-bin.zip";
|
url = "mirror://sourceforge/geoserver/GeoServer/${finalAttrs.version}/geoserver-${finalAttrs.version}-bin.zip";
|
||||||
hash = "sha256-bhL+u+BoKgW2cwOXEzaq0h07dKFz9u9WB2jW8nAF0vI=";
|
hash = "sha256-bhL+u+BoKgW2cwOXEzaq0h07dKFz9u9WB2jW8nAF0vI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -9,14 +9,14 @@
|
||||||
pkgsBuildHost,
|
pkgsBuildHost,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "glog";
|
pname = "glog";
|
||||||
version = "0.7.1";
|
version = "0.7.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "google";
|
owner = "google";
|
||||||
repo = "glog";
|
repo = "glog";
|
||||||
rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
sha256 = "sha256-+nwWP6VBmhgU7GCPSEGUzvUSCc48wXME181WpJ5ABP4=";
|
sha256 = "sha256-+nwWP6VBmhgU7GCPSEGUzvUSCc48wXME181WpJ5ABP4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation (finalAttrs: rec {
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
pname = "has";
|
pname = "has";
|
||||||
version = "1.5.0";
|
version = "1.5.0";
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ stdenvNoCC.mkDerivation (finalAttrs: rec {
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
install -Dm0555 ${pname} -t $out/bin
|
install -Dm0555 has -t $out/bin
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
@ -52,27 +52,28 @@ let
|
||||||
cp libsha1.so $out/lib/
|
cp libsha1.so $out/lib/
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation (finalAttrs: rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "isabelle";
|
pname = "isabelle";
|
||||||
version = "2025";
|
version = "2025";
|
||||||
|
|
||||||
dirname = "Isabelle${version}";
|
dirname = "Isabelle${finalAttrs.version}";
|
||||||
|
|
||||||
src =
|
src =
|
||||||
if stdenv.hostPlatform.isDarwin then
|
if stdenv.hostPlatform.isDarwin then
|
||||||
fetchurl {
|
fetchurl {
|
||||||
url = "https://isabelle.in.tum.de/website-${dirname}/dist/${dirname}_macos.tar.gz";
|
url = "https://isabelle.in.tum.de/website-${finalAttrs.dirname}/dist/${finalAttrs.dirname}_macos.tar.gz";
|
||||||
hash = "sha256-6ldUwiiFf12dOuJU7JgUeX8kU+opDfILL23LLvDi5/g=";
|
hash = "sha256-6ldUwiiFf12dOuJU7JgUeX8kU+opDfILL23LLvDi5/g=";
|
||||||
}
|
}
|
||||||
else if stdenv.hostPlatform.isx86 then
|
else if stdenv.hostPlatform.isx86 then
|
||||||
fetchurl {
|
fetchurl {
|
||||||
url = "https://isabelle.in.tum.de/website-${dirname}/dist/${dirname}_linux.tar.gz";
|
url = "https://isabelle.in.tum.de/website-${finalAttrs.dirname}/dist/${finalAttrs.dirname}_linux.tar.gz";
|
||||||
hash = "sha256-PR1m3jcYI/4xqormZjj3NXW6wkTwCzGu4dy2LzgUfFY=";
|
hash = "sha256-PR1m3jcYI/4xqormZjj3NXW6wkTwCzGu4dy2LzgUfFY=";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fetchurl {
|
fetchurl {
|
||||||
url = "https://isabelle.in.tum.de/website-${dirname}/dist/${dirname}_linux_arm.tar.gz";
|
url = "https://isabelle.in.tum.de/website-${finalAttrs.dirname}/dist/${finalAttrs.dirname}_linux_arm.tar.gz";
|
||||||
hash = "sha256-p/Hp+7J5gJy5s6BVD5Ma1Mu2OS53I8BS7gKSOYYB0PE=";
|
hash = "sha256-p/Hp+7J5gJy5s6BVD5Ma1Mu2OS53I8BS7gKSOYYB0PE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -88,14 +89,14 @@ stdenv.mkDerivation (finalAttrs: rec {
|
||||||
|
|
||||||
propagatedBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ procps ];
|
propagatedBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ procps ];
|
||||||
|
|
||||||
sourceRoot = "${dirname}${lib.optionalString stdenv.hostPlatform.isDarwin ".app"}";
|
sourceRoot = "${finalAttrs.dirname}${lib.optionalString stdenv.hostPlatform.isDarwin ".app"}";
|
||||||
|
|
||||||
doCheck = stdenv.hostPlatform.system != "aarch64-linux";
|
doCheck = stdenv.hostPlatform.system != "aarch64-linux";
|
||||||
checkPhase = "bin/isabelle build -v HOL-SMT_Examples";
|
checkPhase = "bin/isabelle build -v HOL-SMT_Examples";
|
||||||
|
|
||||||
postUnpack = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
postUnpack = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||||
mv $sourceRoot ${dirname}
|
mv $sourceRoot ${finalAttrs.dirname}
|
||||||
sourceRoot=${dirname}
|
sourceRoot=${finalAttrs.dirname}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postPatch =
|
postPatch =
|
||||||
|
@ -208,11 +209,11 @@ stdenv.mkDerivation (finalAttrs: rec {
|
||||||
|
|
||||||
# icon
|
# icon
|
||||||
mkdir -p "$out/share/icons/hicolor/isabelle/apps"
|
mkdir -p "$out/share/icons/hicolor/isabelle/apps"
|
||||||
cp "$out/Isabelle${version}/lib/icons/isabelle.xpm" "$out/share/icons/hicolor/isabelle/apps/"
|
cp "$out/Isabelle${finalAttrs.version}/lib/icons/isabelle.xpm" "$out/share/icons/hicolor/isabelle/apps/"
|
||||||
|
|
||||||
# desktop item
|
# desktop item
|
||||||
mkdir -p "$out/share"
|
mkdir -p "$out/share"
|
||||||
cp -r "${desktopItem}/share/applications" "$out/share/applications"
|
cp -r "${finalAttrs.desktopItem}/share/applications" "$out/share/applications"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
desktopItem = makeDesktopItem {
|
desktopItem = makeDesktopItem {
|
||||||
|
@ -220,7 +221,7 @@ stdenv.mkDerivation (finalAttrs: rec {
|
||||||
exec = "isabelle jedit";
|
exec = "isabelle jedit";
|
||||||
icon = "isabelle";
|
icon = "isabelle";
|
||||||
desktopName = "Isabelle";
|
desktopName = "Isabelle";
|
||||||
comment = meta.description;
|
comment = finalAttrs.meta.description;
|
||||||
categories = [
|
categories = [
|
||||||
"Education"
|
"Education"
|
||||||
"Science"
|
"Science"
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
gst_all_1,
|
gst_all_1,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
version = "1.0.15";
|
version = "1.0.15";
|
||||||
pname = "libde265";
|
pname = "libde265";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "strukturag";
|
owner = "strukturag";
|
||||||
repo = "libde265";
|
repo = "libde265";
|
||||||
tag = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-guiLM4RNe5O0qpeCoQUbs1Z7j0wp8iK9za2+6NIB8yY=";
|
hash = "sha256-guiLM4RNe5O0qpeCoQUbs1Z7j0wp8iK9za2+6NIB8yY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -51,14 +51,12 @@ let
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
pname = "littlenavmap";
|
|
||||||
|
|
||||||
desktopItem = makeDesktopItem {
|
desktopItem = makeDesktopItem {
|
||||||
name = "Little Navmap";
|
name = "Little Navmap";
|
||||||
desktopName = "Little Navmap";
|
desktopName = "Little Navmap";
|
||||||
icon = pname;
|
icon = "littlenavmap";
|
||||||
terminal = false;
|
terminal = false;
|
||||||
exec = pname;
|
exec = "littlenavmap";
|
||||||
categories = [
|
categories = [
|
||||||
"Qt"
|
"Qt"
|
||||||
"Utility"
|
"Utility"
|
||||||
|
@ -67,14 +65,14 @@ let
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation (finalAttrs: rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
inherit pname;
|
pname = "littlenavmap";
|
||||||
version = "3.0.17";
|
version = "3.0.17";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "albar965";
|
owner = "albar965";
|
||||||
repo = "littlenavmap";
|
repo = "littlenavmap";
|
||||||
tag = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-/1YB2uEQzT0K6IylpWDqOaMSENDR9GuyJNty+2C8kXM=";
|
hash = "sha256-/1YB2uEQzT0K6IylpWDqOaMSENDR9GuyJNty+2C8kXM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -122,7 +120,7 @@ stdenv.mkDerivation (finalAttrs: rec {
|
||||||
meta = {
|
meta = {
|
||||||
description = "Free flight planner, navigation tool, moving map, airport search and airport information system for Flight Simulator X, Microsoft Flight Simulator 2020, Prepar3D and X-Plane";
|
description = "Free flight planner, navigation tool, moving map, airport search and airport information system for Flight Simulator X, Microsoft Flight Simulator 2020, Prepar3D and X-Plane";
|
||||||
homepage = "https://github.com/albar965/littlenavmap";
|
homepage = "https://github.com/albar965/littlenavmap";
|
||||||
changelog = "https://github.com/albar965/littlenavmap/blob/${src.rev}/CHANGELOG.txt";
|
changelog = "https://github.com/albar965/littlenavmap/blob/${finalAttrs.src.tag}/CHANGELOG.txt";
|
||||||
license = lib.licenses.gpl3Only;
|
license = lib.licenses.gpl3Only;
|
||||||
maintainers = with lib.maintainers; [ ck3d ];
|
maintainers = with lib.maintainers; [ ck3d ];
|
||||||
mainProgram = "littlenavmap";
|
mainProgram = "littlenavmap";
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
- fontforge = null (limited functionality)
|
- fontforge = null (limited functionality)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "mftrace";
|
pname = "mftrace";
|
||||||
version = "1.2.20";
|
version = "1.2.20";
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ stdenv.mkDerivation (finalAttrs: rec {
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hanwen";
|
owner = "hanwen";
|
||||||
repo = "mftrace";
|
repo = "mftrace";
|
||||||
rev = "release/${version}";
|
rev = "release/${finalAttrs.version}";
|
||||||
sha256 = "02ik25aczkbi10jrjlnxby3fmixxrwm2k5r4fkfif3bjfym7nqbc";
|
sha256 = "02ik25aczkbi10jrjlnxby3fmixxrwm2k5r4fkfif3bjfym7nqbc";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -12,14 +12,14 @@
|
||||||
makeDesktopItem,
|
makeDesktopItem,
|
||||||
nix-update-script,
|
nix-update-script,
|
||||||
}:
|
}:
|
||||||
buildDotnetModule (finalAttrs: rec {
|
buildDotnetModule (finalAttrs: {
|
||||||
pname = "msbuild-structured-log-viewer";
|
pname = "msbuild-structured-log-viewer";
|
||||||
version = "2.2.490";
|
version = "2.2.490";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "KirillOsenkov";
|
owner = "KirillOsenkov";
|
||||||
repo = "MSBuildStructuredLog";
|
repo = "MSBuildStructuredLog";
|
||||||
rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
hash = "sha256-VJun6bs47NKj90e/6ZGp66x+MG1R/qxqrn2L1bVkdHY=";
|
hash = "sha256-VJun6bs47NKj90e/6ZGp66x+MG1R/qxqrn2L1bVkdHY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -48,10 +48,10 @@ buildDotnetModule (finalAttrs: rec {
|
||||||
|
|
||||||
postFixup =
|
postFixup =
|
||||||
''
|
''
|
||||||
wrapDotnetProgram $out/lib/${finalAttrs.pname}/StructuredLogViewer.Avalonia $out/bin/${meta.mainProgram}
|
wrapDotnetProgram $out/lib/msbuild-structured-log-viewer/StructuredLogViewer.Avalonia $out/bin/${finalAttrs.meta.mainProgram}
|
||||||
''
|
''
|
||||||
+ lib.optionalString stdenv.hostPlatform.isLinux ''
|
+ lib.optionalString stdenv.hostPlatform.isLinux ''
|
||||||
install -Dm444 $src/src/StructuredLogViewer/icons/msbuild-structured-log-viewer.png $out/share/icons/hicolor/32x32/apps/${finalAttrs.pname}.png
|
install -Dm444 $src/src/StructuredLogViewer/icons/msbuild-structured-log-viewer.png $out/share/icons/hicolor/32x32/apps/msbuild-structured-log-viewer.png
|
||||||
''
|
''
|
||||||
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
|
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||||
substituteInPlace src/StructuredLogViewer.Avalonia/Info.plist \
|
substituteInPlace src/StructuredLogViewer.Avalonia/Info.plist \
|
||||||
|
@ -60,15 +60,15 @@ buildDotnetModule (finalAttrs: rec {
|
||||||
install -Dm444 src/StructuredLogViewer.Avalonia/Info.plist $out/Applications/StructuredLogViewer.app/Contents/Info.plist
|
install -Dm444 src/StructuredLogViewer.Avalonia/Info.plist $out/Applications/StructuredLogViewer.app/Contents/Info.plist
|
||||||
install -Dm444 src/StructuredLogViewer.Avalonia/StructuredLogViewer.icns $out/Applications/StructuredLogViewer.app/Contents/Resources/StructuredLogViewer.icns
|
install -Dm444 src/StructuredLogViewer.Avalonia/StructuredLogViewer.icns $out/Applications/StructuredLogViewer.app/Contents/Resources/StructuredLogViewer.icns
|
||||||
mkdir -p $out/Applications/StructuredLogViewer.app/Contents/MacOS
|
mkdir -p $out/Applications/StructuredLogViewer.app/Contents/MacOS
|
||||||
ln -s $out/bin/${meta.mainProgram} $out/Applications/StructuredLogViewer.app/Contents/MacOS/StructuredLogViewer.Avalonia
|
ln -s $out/bin/${finalAttrs.meta.mainProgram} $out/Applications/StructuredLogViewer.app/Contents/MacOS/StructuredLogViewer.Avalonia
|
||||||
'';
|
'';
|
||||||
|
|
||||||
desktopItems = makeDesktopItem {
|
desktopItems = makeDesktopItem {
|
||||||
name = finalAttrs.pname;
|
name = "msbuild-structured-log-viewer";
|
||||||
desktopName = "MSBuild Structured Log Viewer";
|
desktopName = "MSBuild Structured Log Viewer";
|
||||||
comment = finalAttrs.meta.description;
|
comment = finalAttrs.meta.description;
|
||||||
icon = finalAttrs.pname;
|
icon = "msbuild-structured-log-viewer";
|
||||||
exec = meta.mainProgram;
|
exec = finalAttrs.meta.mainProgram;
|
||||||
categories = [ "Development" ];
|
categories = [ "Development" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule (finalAttrs: rec {
|
buildGoModule (finalAttrs: {
|
||||||
pname = "noti";
|
pname = "noti";
|
||||||
version = "3.8.0";
|
version = "3.8.0";
|
||||||
|
|
||||||
|
|
|
@ -10,13 +10,13 @@ let
|
||||||
nim2 = nim-2_0;
|
nim2 = nim-2_0;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
buildNimPackage' (finalAttrs: rec {
|
buildNimPackage' (finalAttrs: {
|
||||||
pname = "nph";
|
pname = "nph";
|
||||||
version = "0.6.1";
|
version = "0.6.1";
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace src/nph.nim \
|
substituteInPlace src/nph.nim \
|
||||||
--replace-fail 'git describe --long --dirty --always --tags' "echo ${version}"
|
--replace-fail 'git describe --long --dirty --always --tags' "echo ${finalAttrs.version}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
waylandSupport ? stdenv.hostPlatform.isLinux,
|
waylandSupport ? stdenv.hostPlatform.isLinux,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "q2pro";
|
pname = "q2pro";
|
||||||
version = "0-unstable-2025-05-03";
|
version = "0-unstable-2025-05-03";
|
||||||
|
|
||||||
|
@ -90,9 +90,9 @@ stdenv.mkDerivation (finalAttrs: rec {
|
||||||
(lib.mesonEnable "windows-crash-dumps" false)
|
(lib.mesonEnable "windows-crash-dumps" false)
|
||||||
];
|
];
|
||||||
|
|
||||||
internalVersion = "r${revCount}~${builtins.substring 0 8 src.rev}";
|
internalVersion = "r${finalAttrs.revCount}~${builtins.substring 0 8 finalAttrs.src.rev}";
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
echo '${internalVersion}' > VERSION
|
echo '${finalAttrs.internalVersion}' > VERSION
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall =
|
postInstall =
|
||||||
|
@ -105,13 +105,13 @@ stdenv.mkDerivation (finalAttrs: rec {
|
||||||
makeWrapper $out/bin/q2pro-unwrapped $out/bin/q2pro \
|
makeWrapper $out/bin/q2pro-unwrapped $out/bin/q2pro \
|
||||||
--prefix ${ldLibraryPathEnvName} : "${lib.makeLibraryPath finalAttrs.buildInputs}"
|
--prefix ${ldLibraryPathEnvName} : "${lib.makeLibraryPath finalAttrs.buildInputs}"
|
||||||
|
|
||||||
install -D ${src}/src/unix/res/q2pro.xpm $out/share/icons/hicolor/32x32/apps/q2pro.xpm
|
install -D ${finalAttrs.src}/src/unix/res/q2pro.xpm $out/share/icons/hicolor/32x32/apps/q2pro.xpm
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||||
versionCheckProgramArg = "--version";
|
versionCheckProgramArg = "--version";
|
||||||
preVersionCheck = ''
|
preVersionCheck = ''
|
||||||
export version='${internalVersion}'
|
export version='${finalAttrs.internalVersion}'
|
||||||
'';
|
'';
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
libiconv,
|
libiconv,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "qrencode";
|
pname = "qrencode";
|
||||||
version = "4.1.1";
|
version = "4.1.1";
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ stdenv.mkDerivation (finalAttrs: rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://fukuchi.org/works/qrencode/qrencode-${version}.tar.gz";
|
url = "https://fukuchi.org/works/qrencode/qrencode-${finalAttrs.version}.tar.gz";
|
||||||
sha256 = "sha256-2kSO1PUqumvLDNSMrA3VG4aSvMxM0SdDFAL8pvgXHo4=";
|
sha256 = "sha256-2kSO1PUqumvLDNSMrA3VG4aSvMxM0SdDFAL8pvgXHo4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -32,14 +32,14 @@
|
||||||
pantheon,
|
pantheon,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "SwayNotificationCenter";
|
pname = "SwayNotificationCenter";
|
||||||
version = "0.11.0";
|
version = "0.11.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ErikReider";
|
owner = "ErikReider";
|
||||||
repo = "SwayNotificationCenter";
|
repo = "SwayNotificationCenter";
|
||||||
rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
hash = "sha256-kRawYbBLVx0ie4t7tChkA8QJShS83fUcGrJSKkxBy8Q=";
|
hash = "sha256-kRawYbBLVx0ie4t7tChkA8QJShS83fUcGrJSKkxBy8Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ stdenv.mkDerivation (finalAttrs: rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Simple notification daemon with a GUI built for Sway";
|
description = "Simple notification daemon with a GUI built for Sway";
|
||||||
homepage = "https://github.com/ErikReider/SwayNotificationCenter";
|
homepage = "https://github.com/ErikReider/SwayNotificationCenter";
|
||||||
changelog = "https://github.com/ErikReider/SwayNotificationCenter/releases/tag/v${version}";
|
changelog = "https://github.com/ErikReider/SwayNotificationCenter/releases/tag/v${finalAttrs.version}";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
mainProgram = "swaync";
|
mainProgram = "swaync";
|
||||||
|
|
|
@ -55,11 +55,11 @@ let
|
||||||
else
|
else
|
||||||
src;
|
src;
|
||||||
|
|
||||||
self = stdenv.mkDerivation (finalAttrs: rec {
|
self = stdenv.mkDerivation (finalAttrs: {
|
||||||
inherit pname version patches;
|
inherit pname version patches;
|
||||||
|
|
||||||
src = src';
|
src = src';
|
||||||
sourceRoot = "${src.name}/llvm";
|
sourceRoot = "${finalAttrs.src.name}/llvm";
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
(
|
(
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
libiconv,
|
libiconv,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "spidermonkey";
|
pname = "spidermonkey";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
|
|
|
@ -46,14 +46,14 @@ let
|
||||||
++ lib.optional (!asioSupport) boost;
|
++ lib.optional (!asioSupport) boost;
|
||||||
|
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation (finalAttrs: rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "libpulsar";
|
pname = "libpulsar";
|
||||||
version = "3.7.1";
|
version = "3.7.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "apache";
|
owner = "apache";
|
||||||
repo = "pulsar-client-cpp";
|
repo = "pulsar-client-cpp";
|
||||||
rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
hash = "sha256-RHWi0KCq7U7Dr3Ic7kduc8P64VpAThTQ3lDxLLEqzIU=";
|
hash = "sha256-RHWi0KCq7U7Dr3Ic7kduc8P64VpAThTQ3lDxLLEqzIU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ stdenv.mkDerivation (finalAttrs: rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://pulsar.apache.org/docs/next/client-libraries-cpp/";
|
homepage = "https://pulsar.apache.org/docs/next/client-libraries-cpp/";
|
||||||
description = "Apache Pulsar C++ library";
|
description = "Apache Pulsar C++ library";
|
||||||
changelog = "https://github.com/apache/pulsar-client-cpp/releases/tag/v${version}";
|
changelog = "https://github.com/apache/pulsar-client-cpp/releases/tag/v${finalAttrs.version}";
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [
|
maintainers = with maintainers; [
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
stdenv,
|
stdenv,
|
||||||
fetchurl,
|
fetchurl,
|
||||||
fetchFromGitLab,
|
fetchFromGitLab,
|
||||||
fetchpatch,
|
|
||||||
cairo,
|
cairo,
|
||||||
cmake,
|
cmake,
|
||||||
boost,
|
boost,
|
||||||
|
@ -60,7 +59,7 @@ let
|
||||||
hash = "sha256-bImTdlhMAA79kwbKPrHN3a9vVrtsgBh3rFjH3B7tEbQ=";
|
hash = "sha256-bImTdlhMAA79kwbKPrHN3a9vVrtsgBh3rFjH3B7tEbQ=";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation (finalAttrs: rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "poppler-${suffix}";
|
pname = "poppler-${suffix}";
|
||||||
version = "25.05.0"; # beware: updates often break cups-filters build, check scribus too!
|
version = "25.05.0"; # beware: updates often break cups-filters build, check scribus too!
|
||||||
|
|
||||||
|
@ -70,7 +69,7 @@ stdenv.mkDerivation (finalAttrs: rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://poppler.freedesktop.org/poppler-${version}.tar.xz";
|
url = "https://poppler.freedesktop.org/poppler-${finalAttrs.version}.tar.xz";
|
||||||
hash = "sha256-mxYnxbdoFqxeQFKgP1tgW6QLRc8GsCyt0EeWILSZqzg=";
|
hash = "sha256-mxYnxbdoFqxeQFKgP1tgW6QLRc8GsCyt0EeWILSZqzg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -182,7 +181,7 @@ stdenv.mkDerivation (finalAttrs: rec {
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://poppler.freedesktop.org/";
|
homepage = "https://poppler.freedesktop.org/";
|
||||||
changelog = "https://gitlab.freedesktop.org/poppler/poppler/-/blob/poppler-${version}/NEWS";
|
changelog = "https://gitlab.freedesktop.org/poppler/poppler/-/blob/poppler-${finalAttrs.version}/NEWS";
|
||||||
description = "PDF rendering library";
|
description = "PDF rendering library";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Poppler is a PDF rendering library based on the xpdf-3.0 code base. In
|
Poppler is a PDF rendering library based on the xpdf-3.0 code base. In
|
||||||
|
|
|
@ -8,14 +8,14 @@
|
||||||
autoSignDarwinBinariesHook,
|
autoSignDarwinBinariesHook,
|
||||||
glibcLocales,
|
glibcLocales,
|
||||||
}:
|
}:
|
||||||
buildDotnetModule (finalAttrs: rec {
|
buildDotnetModule (finalAttrs: {
|
||||||
pname = "ilspycmd";
|
pname = "ilspycmd";
|
||||||
version = "9.0-preview3";
|
version = "9.0-preview3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "icsharpcode";
|
owner = "icsharpcode";
|
||||||
repo = "ILSpy";
|
repo = "ILSpy";
|
||||||
rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
hash = "sha256-7cPXFaEKr76GtqcNsKx7tstRUeTpSTF8ggxbyEnQa9M=";
|
hash = "sha256-7cPXFaEKr76GtqcNsKx7tstRUeTpSTF8ggxbyEnQa9M=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue