various: make all uses of fixed point builders use finalAttrs as argument
some of these were just typos like `finalAttr`, `finalAtts` or `finaAttrs` some of these were using `self`, `final`, `finalPackage`, `attrs` or `_` some of these were wrong by using `oldAttrs` or `finalPackages` other than the nixos manual this shouldn't create any rebuilds
This commit is contained in:
@@ -116,14 +116,14 @@ Here is a second example, this time using a source archive generated with `dune-
|
||||
buildDunePackage,
|
||||
}:
|
||||
|
||||
buildDunePackage (finalAtts: {
|
||||
buildDunePackage (finalAttrs: {
|
||||
pname = "wtf8";
|
||||
version = "1.0.2";
|
||||
|
||||
minimalOCamlVersion = "4.02";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/flowtype/ocaml-wtf8/releases/download/v${finalAtts.version}/wtf8-v${finalAtts.version}.tbz";
|
||||
url = "https://github.com/flowtype/ocaml-wtf8/releases/download/v${finalAttrs.version}/wtf8-v${finalAttrs.version}.tbz";
|
||||
hash = "sha256-d5/3KUBAWRj8tntr4RkJ74KWW7wvn/B/m1nx0npnzyc=";
|
||||
};
|
||||
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
libsForQt5,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttr: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "qtbitcointrader";
|
||||
version = "1.42.21";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "JulyIGHOR";
|
||||
repo = "QtBitcoinTrader";
|
||||
tag = "v${finalAttr.version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-u3+Kwn8KunYUpWCd55TQuVVfoSp8hdti93d6hk7Uqx8=";
|
||||
};
|
||||
|
||||
@@ -24,7 +24,7 @@ stdenv.mkDerivation (finalAttr: {
|
||||
libsForQt5.qtscript
|
||||
];
|
||||
|
||||
sourceRoot = "${finalAttr.src.name}/src";
|
||||
sourceRoot = "${finalAttrs.src.name}/src";
|
||||
|
||||
configurePhase = ''
|
||||
runHook preConfigure
|
||||
|
||||
@@ -16,14 +16,14 @@
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildGoModule (final: {
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "age";
|
||||
version = "1.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "FiloSottile";
|
||||
repo = "age";
|
||||
tag = "v${final.version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-Qs/q3zQYV0PukABBPf/aU5V1oOhw95NG6K301VYJk8A=";
|
||||
};
|
||||
|
||||
@@ -32,7 +32,7 @@ buildGoModule (final: {
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X main.Version=v${final.version}"
|
||||
"-X main.Version=v${finalAttrs.version}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
@@ -67,15 +67,15 @@ buildGoModule (final: {
|
||||
# convenience function for wrapping sops with plugins
|
||||
passthru.withPlugins =
|
||||
filter:
|
||||
runCommand "age-${final.version}-with-plugins" { nativeBuildInputs = [ makeWrapper ]; } ''
|
||||
makeWrapper ${lib.getBin final.finalPackage}/bin/age $out/bin/age \
|
||||
--prefix PATH : "${lib.makeBinPath (filter final.passthru.plugins)}"
|
||||
runCommand "age-${finalAttrs.version}-with-plugins" { nativeBuildInputs = [ makeWrapper ]; } ''
|
||||
makeWrapper ${lib.getBin finalAttrs.finalPackage}/bin/age $out/bin/age \
|
||||
--prefix PATH : "${lib.makeBinPath (filter finalAttrs.passthru.plugins)}"
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/FiloSottile/age/releases/tag/v${final.version}";
|
||||
changelog = "https://github.com/FiloSottile/age/releases/tag/v${finalAttrs.version}";
|
||||
homepage = "https://age-encryption.org/";
|
||||
description = "Modern encryption tool with small explicit keys";
|
||||
license = lib.licenses.bsd3;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
stdenvNoCC,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (self: {
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "alacritty-theme";
|
||||
version = "0-unstable-2025-11-16";
|
||||
|
||||
@@ -21,7 +21,7 @@ stdenvNoCC.mkDerivation (self: {
|
||||
dontBuild = true;
|
||||
preferLocalBuild = true;
|
||||
|
||||
sourceRoot = "${self.src.name}/themes";
|
||||
sourceRoot = "${finalAttrs.src.name}/themes";
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dt $out/share/alacritty-theme *.toml
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
fetchzip,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (attrs: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "Alice";
|
||||
version = "2.003";
|
||||
|
||||
@@ -15,7 +15,7 @@ stdenv.mkDerivation (attrs: {
|
||||
|
||||
src = fetchzip {
|
||||
url =
|
||||
with attrs;
|
||||
with finalAttrs;
|
||||
"https://github.com/cyrealtype/${pname}/releases/download/v${version}/${pname}-v${version}.zip";
|
||||
stripRoot = false;
|
||||
hash = "sha256-p+tE3DECfJyBIPyafGZ8jDYQ1lPb+iAnEwLyaUy7DW0=";
|
||||
|
||||
@@ -11,13 +11,13 @@
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
}:
|
||||
rustPlatform.buildRustPackage (final: {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "bark";
|
||||
version = "0.6.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "haileys";
|
||||
repo = "bark";
|
||||
tag = "v${final.version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-JaUIWGCYhasM0DgqL+DiG2rE1OWVg/N66my/4RWDN1E=";
|
||||
};
|
||||
|
||||
|
||||
@@ -6,14 +6,14 @@
|
||||
catch2,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (final: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "boxed-cpp";
|
||||
version = "1.4.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "contour-terminal";
|
||||
repo = "boxed-cpp";
|
||||
rev = "v${final.version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-uZ/wT159UuEcTUtoQyt0D59z2wnLT5KpeeCpjyij198=";
|
||||
};
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (self: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "CLProver++";
|
||||
version = "1.0.3";
|
||||
|
||||
@@ -43,8 +43,8 @@ stdenv.mkDerivation (self: {
|
||||
mkdir -p $out/bin
|
||||
cp -r bin $out/
|
||||
|
||||
mkdir -p $out/share/${self.pname}
|
||||
cp -r examples $out/share/${self.pname}/examples
|
||||
mkdir -p $out/share/${finalAttrs.pname}
|
||||
cp -r examples $out/share/${finalAttrs.pname}/examples
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
# Use the same stdenv, including clang, as Swift itself
|
||||
# Fixes build issues, see https://github.com/NixOS/nixpkgs/pull/296082 and https://github.com/NixOS/nixpkgs/issues/295322
|
||||
swiftPackages.stdenv.mkDerivation (final: {
|
||||
swiftPackages.stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "dark-mode-notify";
|
||||
version = "0-unstable-2022-07-18";
|
||||
|
||||
|
||||
@@ -23,14 +23,14 @@ let
|
||||
hash = "sha256-WwJR5lnWtR3aYWZmk8pBC0/qaRqY0UrWHIaYp2ajImE=";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation (final: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "dssat";
|
||||
version = "4.8.2.12";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "DSSAT";
|
||||
repo = "dssat-csm-os";
|
||||
tag = "v${final.version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-8OaTM7IXFZjlelx5O4O+bVNQj4dIhGzIk2iCfpqI8uA=";
|
||||
};
|
||||
|
||||
|
||||
@@ -6,14 +6,14 @@
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (self: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "emmy-lua-code-style";
|
||||
version = "1.6.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "CppCXY";
|
||||
repo = "EmmyLuaCodeStyle";
|
||||
tag = self.version;
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-FYtDO9ZL7MjC+vHzrylyYBQHTtef/GM9ipt//EcLr4w=";
|
||||
};
|
||||
|
||||
@@ -23,7 +23,7 @@ stdenv.mkDerivation (self: {
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/CppCXY/EmmyLuaCodeStyle";
|
||||
changelog = "https://github.com/CppCXY/EmmyLuaCodeStyle/releases/tag/${self.version}";
|
||||
changelog = "https://github.com/CppCXY/EmmyLuaCodeStyle/releases/tag/${finalAttrs.version}";
|
||||
description = "Fast, powerful, and feature-rich Lua formatting and checking tool";
|
||||
mainProgram = "CodeFormat";
|
||||
platforms = lib.platforms.unix;
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
rustPlatform,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (final: {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "evil-helix";
|
||||
version = "20250915";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "usagi-flow";
|
||||
repo = "evil-helix";
|
||||
tag = "release-${final.version}";
|
||||
tag = "release-${finalAttrs.version}";
|
||||
hash = "sha256-6kqKTZNS1RZwfxcFoa2uC7fUKcQ+KhT5KXusyCt59YQ=";
|
||||
};
|
||||
|
||||
|
||||
@@ -9,14 +9,14 @@
|
||||
enableInterop ? true,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (final: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "glaze";
|
||||
version = "7.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "stephenberry";
|
||||
repo = "glaze";
|
||||
tag = "v${final.version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-bYXXQmrVnrBTW/r+fgRBPYfKGPtHvEDw0Sk6BYTMm/4=";
|
||||
};
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (final: {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "helix";
|
||||
version = "25.07.1";
|
||||
outputs = [
|
||||
@@ -21,7 +21,7 @@ rustPlatform.buildRustPackage (final: {
|
||||
# This release tarball includes source code for the tree-sitter grammars,
|
||||
# which is not ordinarily part of the repository.
|
||||
src = fetchzip {
|
||||
url = "https://github.com/helix-editor/helix/releases/download/${final.version}/helix-${final.version}-source.tar.xz";
|
||||
url = "https://github.com/helix-editor/helix/releases/download/${finalAttrs.version}/helix-${finalAttrs.version}-source.tar.xz";
|
||||
hash = "sha256-Pj/lfcQXRWqBOTTWt6+Gk61F9F1UmeCYr+26hGdG974=";
|
||||
stripRoot = false;
|
||||
};
|
||||
@@ -77,7 +77,7 @@ rustPlatform.buildRustPackage (final: {
|
||||
meta = {
|
||||
description = "Post-modern modal text editor";
|
||||
homepage = "https://helix-editor.com";
|
||||
changelog = "https://github.com/helix-editor/helix/blob/${final.version}/CHANGELOG.md";
|
||||
changelog = "https://github.com/helix-editor/helix/blob/${finalAttrs.version}/CHANGELOG.md";
|
||||
license = lib.licenses.mpl20;
|
||||
mainProgram = "hx";
|
||||
maintainers = with lib.maintainers; [
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
fetchurl,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttr: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "iat";
|
||||
version = "0.1.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/iat.berlios/iat-${finalAttr.version}.tar.gz";
|
||||
url = "mirror://sourceforge/iat.berlios/iat-${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-sl1X/eKKArLYfNSf0UeLA5rb2DY1GHmmVP6hTCd2SyE=";
|
||||
};
|
||||
|
||||
|
||||
@@ -13,14 +13,14 @@
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttr: {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "ivm";
|
||||
version = "0.6.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "inko-lang";
|
||||
repo = "ivm";
|
||||
tag = "v${finalAttr.version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-pqqUvHK6mPrK1Mir2ILANxtih9OrAKDJPE0nRWc5JOY=";
|
||||
};
|
||||
|
||||
|
||||
@@ -20,14 +20,14 @@
|
||||
enableAlsa ? stdenv.hostPlatform.isLinux,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (final: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "jack-example-tools";
|
||||
version = "4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jackaudio";
|
||||
repo = "jack-example-tools";
|
||||
rev = "tags/${final.version}";
|
||||
rev = "tags/${finalAttrs.version}";
|
||||
hash = "sha256-5jmynNxwNVLxEZ1MaqQUG6kRwipDkjhrdDCbZHtmAHk=";
|
||||
};
|
||||
|
||||
|
||||
@@ -32,14 +32,14 @@
|
||||
zlib,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalPackage: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "kismet";
|
||||
version = "2025-09-R1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kismetwireless";
|
||||
repo = "kismet";
|
||||
tag = "kismet-${finalPackage.version}";
|
||||
tag = "kismet-${finalAttrs.version}";
|
||||
hash = "sha256-bwgeBIa5P1he0azWBu1YTXS9EGlHdJK8hS6A5Rj9XU4=";
|
||||
};
|
||||
|
||||
|
||||
@@ -13,14 +13,14 @@
|
||||
withPostQuantum ? true,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalPackage: {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "kryoptic";
|
||||
version = "1.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "latchset";
|
||||
repo = "kryoptic";
|
||||
tag = "v${finalPackage.version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-tP2BZkGCZqfLNLZ/mYAVkICWKTM1EbL7lbw+Mnx4VTk=";
|
||||
};
|
||||
|
||||
|
||||
@@ -10,14 +10,14 @@
|
||||
python ? null,
|
||||
withPython ? false,
|
||||
}:
|
||||
stdenv.mkDerivation (attrs: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libsbml";
|
||||
version = "5.20.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sbmlteam";
|
||||
repo = "libsbml";
|
||||
rev = "v${attrs.version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-qWTN033YU4iWzt+mXQaP5W/6IF5nebF4PwNVkyL8wTg=";
|
||||
};
|
||||
|
||||
|
||||
@@ -19,14 +19,14 @@ let
|
||||
stripRoot = false;
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation (final: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libunicode";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "contour-terminal";
|
||||
repo = "libunicode";
|
||||
tag = "v${final.version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-J8qawT1oiUO9xTVEMQvsY0K2NtIfkUq9PoCbFt6wqek=";
|
||||
};
|
||||
|
||||
|
||||
@@ -10,14 +10,14 @@
|
||||
libconfig,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (oldAttrs: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "logiops";
|
||||
version = "0.3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "PixlOne";
|
||||
repo = "logiops";
|
||||
tag = "v${oldAttrs.version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-GAnlPqjIFGyOWwYFs7gth2m9ITc1jyiaW0sWwQ2zFOs=";
|
||||
# In v0.3.0, the `ipcgull` submodule was added as a dependency
|
||||
# https://github.com/PixlOne/logiops/releases/tag/v0.3.0
|
||||
@@ -40,7 +40,7 @@ stdenv.mkDerivation (oldAttrs: {
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DLOGIOPS_VERSION=${oldAttrs.version}"
|
||||
"-DLOGIOPS_VERSION=${finalAttrs.version}"
|
||||
"-DDBUS_SYSTEM_POLICY_INSTALL_DIR=${placeholder "out"}/share/dbus-1/system.d"
|
||||
];
|
||||
|
||||
|
||||
@@ -18,14 +18,14 @@ let
|
||||
fastdeploy = callPackage ./fastdeploy-ppocr.nix { };
|
||||
sources = lib.importJSON ./pin.json;
|
||||
in
|
||||
stdenv.mkDerivation (finalAttr: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "maa-assistant-arknights" + lib.optionalString isBeta "-beta";
|
||||
version = if isBeta then sources.beta.version else sources.stable.version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "MaaAssistantArknights";
|
||||
repo = "MaaAssistantArknights";
|
||||
rev = "v${finalAttr.version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = if isBeta then sources.beta.hash else sources.stable.hash;
|
||||
};
|
||||
|
||||
@@ -63,7 +63,7 @@ stdenv.mkDerivation (finalAttr: {
|
||||
(lib.cmakeBool "INSTALL_PYTHON" true)
|
||||
(lib.cmakeBool "INSTALL_RESOURCE" true)
|
||||
(lib.cmakeBool "USE_MAADEPS" false)
|
||||
(lib.cmakeFeature "MAA_VERSION" "v${finalAttr.version}")
|
||||
(lib.cmakeFeature "MAA_VERSION" "v${finalAttrs.version}")
|
||||
];
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
@@ -73,8 +73,8 @@ stdenv.mkDerivation (finalAttr: {
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/${finalAttr.pname}
|
||||
mv $out/{Python,resource} $out/share/${finalAttr.pname}
|
||||
mkdir -p $out/share/${finalAttrs.pname}
|
||||
mv $out/{Python,resource} $out/share/${finalAttrs.pname}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -6,14 +6,14 @@
|
||||
lib,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (attrs: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "Nuget";
|
||||
version = "6.6.1.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mono";
|
||||
repo = "linux-packaging-nuget";
|
||||
rev = "upstream/${attrs.version}.bin";
|
||||
rev = "upstream/${finalAttrs.version}.bin";
|
||||
hash = "sha256-9/dSeVshHbpYIgGE/8OzrB4towrWVB3UxDi8Esmbu7Y=";
|
||||
};
|
||||
|
||||
@@ -24,14 +24,14 @@ stdenv.mkDerivation (attrs: {
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/lib/${attrs.pname}
|
||||
cp -r . $out/lib/${attrs.pname}/
|
||||
mkdir -p $out/lib/${finalAttrs.pname}
|
||||
cp -r . $out/lib/${finalAttrs.pname}/
|
||||
|
||||
mkdir -p $out/bin
|
||||
makeWrapper \
|
||||
"${mono}/bin/mono" \
|
||||
"$out/bin/nuget" \
|
||||
--add-flags "$out/lib/${attrs.pname}/nuget.exe"
|
||||
--add-flags "$out/lib/${finalAttrs.pname}/nuget.exe"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
stdenvNoCC,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (self: {
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "open-english-wordnet";
|
||||
version = "2022";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "globalwordnet";
|
||||
repo = "english-wordnet";
|
||||
rev = "${self.version}-edition";
|
||||
rev = "${finalAttrs.version}-edition";
|
||||
hash = "sha256-a1fWIp39uuJZL1aFX/r+ttLB1+kwh/XPHwphgENTQ5M=";
|
||||
};
|
||||
|
||||
@@ -49,14 +49,14 @@ stdenvNoCC.mkDerivation (self: {
|
||||
python scripts/merge.py
|
||||
|
||||
echo Compressing
|
||||
gzip --best --no-name --stdout ./wn.xml > 'oewn:${self.version}.xml.gz'
|
||||
gzip --best --no-name --stdout ./wn.xml > 'oewn:${finalAttrs.version}.xml.gz'
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dt $out/share/wordnet 'oewn:${self.version}.xml.gz'
|
||||
install -Dt $out/share/wordnet 'oewn:${finalAttrs.version}.xml.gz'
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
|
||||
@@ -20,13 +20,13 @@ let
|
||||
KERNEL=="hidraw*", ATTRS{idVendor}=="534d", ATTRS{idProduct}=="2109", TAG+="uaccess"
|
||||
'';
|
||||
in
|
||||
stdenv.mkDerivation (final: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "openterface-qt";
|
||||
version = "0.3.18";
|
||||
src = fetchFromGitHub {
|
||||
owner = "TechxArtisanStudio";
|
||||
repo = "Openterface_QT";
|
||||
rev = "${final.version}";
|
||||
rev = "${finalAttrs.version}";
|
||||
hash = "sha256-yD71UOi6iRd9N3NeASUzqoeHMcTYIqkysAfxRm7GkOA=";
|
||||
};
|
||||
nativeBuildInputs = [
|
||||
@@ -62,8 +62,8 @@ stdenv.mkDerivation (final: {
|
||||
(makeDesktopItem {
|
||||
name = "openterfaceQT";
|
||||
exec = "openterfaceQT";
|
||||
icon = final.pname;
|
||||
comment = final.meta.description;
|
||||
icon = finalAttrs.pname;
|
||||
comment = finalAttrs.meta.description;
|
||||
desktopName = "Openterface QT";
|
||||
categories = [ "Utility" ];
|
||||
})
|
||||
|
||||
@@ -95,7 +95,7 @@ let
|
||||
};
|
||||
});
|
||||
in
|
||||
stdenv.mkDerivation (final: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "ovftool";
|
||||
inherit (ovftoolSystem) version;
|
||||
|
||||
@@ -109,7 +109,7 @@ stdenv.mkDerivation (final: {
|
||||
See the following URL for terms of using this software:
|
||||
${mkBaseUrl ovftoolId}
|
||||
|
||||
Use `${final.pname}.override { acceptBroadcomEula = true; }` if you accept Broadcom's terms
|
||||
Use `${finalAttrs.pname}.override { acceptBroadcomEula = true; }` if you accept Broadcom's terms
|
||||
and would like to use this package.
|
||||
'';
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
sysHookDir ? "/usr/share/libalpm/hooks/",
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (final: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "pacman";
|
||||
version = "7.0.0";
|
||||
|
||||
@@ -47,7 +47,7 @@ stdenv.mkDerivation (final: {
|
||||
domain = "gitlab.archlinux.org";
|
||||
owner = "pacman";
|
||||
repo = "pacman";
|
||||
rev = "v${final.version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-ejOBxN2HjV4dZwFA7zvPz3JUJa0xiJ/jZ+evEQYG1Mc=";
|
||||
};
|
||||
|
||||
@@ -132,7 +132,7 @@ stdenv.mkDerivation (final: {
|
||||
meta = {
|
||||
description = "Simple library-based package manager";
|
||||
homepage = "https://archlinux.org/pacman/";
|
||||
changelog = "https://gitlab.archlinux.org/pacman/pacman/-/raw/v${final.version}/NEWS";
|
||||
changelog = "https://gitlab.archlinux.org/pacman/pacman/-/raw/v${finalAttrs.version}/NEWS";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
platforms = lib.platforms.linux;
|
||||
mainProgram = "pacman";
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttr: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "patcher9x";
|
||||
version = "0.8.50";
|
||||
|
||||
@@ -13,7 +13,7 @@ stdenv.mkDerivation (finalAttr: {
|
||||
(fetchFromGitHub {
|
||||
owner = "JHRobotics";
|
||||
repo = "patcher9x";
|
||||
rev = "v${finalAttr.version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-TZw2+R7Dzojzxzal1Wp8jhe5gwU4CfZDROITi5Z+auo=";
|
||||
name = "src";
|
||||
})
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalPackages: {
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "pipeworld";
|
||||
version = "0-unstable-2023-02-05";
|
||||
|
||||
|
||||
@@ -8,14 +8,14 @@
|
||||
pkg-config,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (final: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "poselib";
|
||||
version = "2.0.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "PoseLib";
|
||||
repo = "PoseLib";
|
||||
rev = "v${final.version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-fARRKT2UoPuuk9FOOsBdrACwGiGXWg/mLV4R0QIjeak=";
|
||||
};
|
||||
|
||||
@@ -31,7 +31,7 @@ stdenv.mkDerivation (final: {
|
||||
meta = {
|
||||
description = "A collection of minimal solvers for camera pose estimation";
|
||||
homepage = "https://github.com/PoseLib/PoseLib";
|
||||
changelog = "https://github.com/PoseLib/PoseLib/releases/tag/v${final.version}";
|
||||
changelog = "https://github.com/PoseLib/PoseLib/releases/tag/v${finalAttrs.version}";
|
||||
license = lib.licenses.bsd3;
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = with lib.maintainers; [ usertam ];
|
||||
|
||||
@@ -6,14 +6,14 @@
|
||||
libpcap,
|
||||
}:
|
||||
|
||||
buildGoModule (finalAttr: {
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "ptcpdump";
|
||||
version = "0.37.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mozillazg";
|
||||
repo = "ptcpdump";
|
||||
tag = "v${finalAttr.version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-ouH7VFWSCOElbmbSWAkmM4dtNVp545mC/FnoNAFtaEw=";
|
||||
};
|
||||
|
||||
@@ -24,7 +24,7 @@ buildGoModule (finalAttr: {
|
||||
tags = [ "dynamic" ];
|
||||
|
||||
ldflags = [
|
||||
"-X github.com/mozillazg/ptcpdump/internal.Version=v${finalAttr.version}"
|
||||
"-X github.com/mozillazg/ptcpdump/internal.Version=v${finalAttrs.version}"
|
||||
];
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
doInstallCheck = true;
|
||||
|
||||
@@ -115,7 +115,7 @@ let
|
||||
subprocess.check_call(['chmod', '-R', 'u+w', support_dir])
|
||||
'';
|
||||
in
|
||||
stdenv.mkDerivation (self: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "retdec";
|
||||
|
||||
# If you update this you will also need to adjust the versions of the updated dependencies.
|
||||
@@ -129,7 +129,7 @@ stdenv.mkDerivation (self: {
|
||||
src = fetchFromGitHub {
|
||||
owner = "avast";
|
||||
repo = "retdec";
|
||||
tag = "v${self.version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
sha256 = "sha256-H4e+aSgdBBbG6X6DzHGiDEIASPwBVNVsfHyeBTQLAKI=";
|
||||
};
|
||||
|
||||
@@ -161,10 +161,10 @@ stdenv.mkDerivation (self: {
|
||||
libxml2
|
||||
zlib
|
||||
]
|
||||
++ lib.optional self.doInstallCheck gtest;
|
||||
++ lib.optional finalAttrs.doInstallCheck gtest;
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "RETDEC_TESTS" self.doInstallCheck) # build tests
|
||||
(lib.cmakeBool "RETDEC_TESTS" finalAttrs.doInstallCheck) # build tests
|
||||
(lib.cmakeBool "RETDEC_DEV_TOOLS" buildDevTools) # build tools e.g. capstone2llvmir, retdectool
|
||||
(lib.cmakeBool "RETDEC_COMPILE_YARA" compileYaraPatterns) # build and install compiled patterns
|
||||
]
|
||||
|
||||
@@ -23,14 +23,14 @@
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (final: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "rofi-emoji";
|
||||
version = "4.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Mange";
|
||||
repo = "rofi-emoji";
|
||||
rev = "v${final.version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-Amaz+83mSPue+pjZq/pJiCxu5QczYvmJk6f96eraaK8=";
|
||||
};
|
||||
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
libmrss,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (final: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "rsstail";
|
||||
version = "2.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "folkertvanheusden";
|
||||
repo = "rsstail";
|
||||
rev = "v${final.version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-wbdf9zhwMN7QhJ5WoJo1Csu0EcKUTON8Q2Ic5scbn7I=";
|
||||
};
|
||||
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
stdenv.mkDerivation (finaAttrs: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "scom";
|
||||
version = "1.2.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "crash-systems";
|
||||
repo = "scom";
|
||||
tag = finaAttrs.version;
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-eFnCXMrks5V6o+0+vMjR8zaCdkc+hC3trSS+pOh4Y6U=";
|
||||
};
|
||||
|
||||
|
||||
@@ -10,14 +10,14 @@
|
||||
age,
|
||||
}:
|
||||
|
||||
buildGoModule (final: {
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "sops";
|
||||
version = "3.11.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "getsops";
|
||||
repo = final.pname;
|
||||
tag = "v${final.version}";
|
||||
repo = finalAttrs.pname;
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-AAnrZvNkBgliHdk1lAoFrJdISNWteFdBUorRycKsptU=";
|
||||
};
|
||||
|
||||
@@ -28,7 +28,7 @@ buildGoModule (final: {
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/getsops/sops/v3/version.Version=${final.version}"
|
||||
"-X github.com/getsops/sops/v3/version.Version=${finalAttrs.version}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -49,19 +49,19 @@ buildGoModule (final: {
|
||||
# wrap sops with age plugins
|
||||
passthru.withAgePlugins =
|
||||
filter:
|
||||
runCommand "sops-${final.version}-with-age-plugins"
|
||||
runCommand "sops-${finalAttrs.version}-with-age-plugins"
|
||||
{
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
}
|
||||
''
|
||||
makeWrapper ${lib.getBin final.finalPackage}/bin/sops $out/bin/sops \
|
||||
makeWrapper ${lib.getBin finalAttrs.finalPackage}/bin/sops $out/bin/sops \
|
||||
--prefix PATH : "${lib.makeBinPath (filter age.passthru.plugins)}"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://getsops.io/";
|
||||
description = "Simple and flexible tool for managing secrets";
|
||||
changelog = "https://github.com/getsops/sops/blob/v${final.version}/CHANGELOG.rst";
|
||||
changelog = "https://github.com/getsops/sops/blob/v${finalAttrs.version}/CHANGELOG.rst";
|
||||
mainProgram = "sops";
|
||||
maintainers = with lib.maintainers; [
|
||||
Scrumplex
|
||||
|
||||
@@ -13,14 +13,14 @@
|
||||
seatd,
|
||||
udev,
|
||||
}:
|
||||
stdenv.mkDerivation (self: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "srm-cuarzo";
|
||||
version = "0.13.0-1";
|
||||
rev = "v${self.version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-5BwLqAZdfO5vyEMPZImaxymvLoNuu6bOiOkvR8JERxg=";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit (self) rev hash;
|
||||
inherit (finalAttrs) rev hash;
|
||||
owner = "CuarzoSoftware";
|
||||
repo = "SRM";
|
||||
};
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
isa-l,
|
||||
zlib,
|
||||
}:
|
||||
stdenv.mkDerivation (self: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "strobealign";
|
||||
version = "0.17.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ksahlin";
|
||||
repo = "strobealign";
|
||||
tag = "v${self.version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-ah21ptyfZbgdJrtCCftYhGh1hfcJ9JpXNsXUp8pZDJw=";
|
||||
};
|
||||
|
||||
|
||||
@@ -11,14 +11,14 @@
|
||||
watch,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (attrs: {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "tattoy";
|
||||
version = "0.1.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tattoy-org";
|
||||
repo = "tattoy";
|
||||
tag = "tattoy-v${attrs.version}";
|
||||
tag = "tattoy-v${finalAttrs.version}";
|
||||
hash = "sha256-44rXygZVbwwC/jOB69iHydsjYr/WeVU4Eky3BPqJzyc=";
|
||||
};
|
||||
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
pkg-config,
|
||||
python3,
|
||||
}:
|
||||
stdenv.mkDerivation (final: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "termpaint";
|
||||
version = "0.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "termpaint";
|
||||
repo = "termpaint";
|
||||
rev = final.version;
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-7mfGTC5vJ4806bDbrPMSVthtW05a+M3vgUlHGbtaI4Q=";
|
||||
};
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ let
|
||||
vulkan-loader
|
||||
];
|
||||
in
|
||||
buildNpmPackage (self: {
|
||||
buildNpmPackage (finalAttrs: {
|
||||
pname = "tidal-hifi";
|
||||
inherit version;
|
||||
|
||||
@@ -125,12 +125,12 @@ buildNpmPackage (self: {
|
||||
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
name = self.pname;
|
||||
name = finalAttrs.pname;
|
||||
desktopName = "TIDAL Hi-Fi";
|
||||
genericName = "Music Player";
|
||||
comment = self.meta.description;
|
||||
comment = finalAttrs.meta.description;
|
||||
icon = "tidal-hifi";
|
||||
exec = self.meta.mainProgram;
|
||||
exec = finalAttrs.meta.mainProgram;
|
||||
terminal = false;
|
||||
mimeTypes = [ "x-scheme-handler/tidal" ];
|
||||
categories = [
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
fetchurl,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAtts: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "tm";
|
||||
version = "0.4.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://vicerveza.homeunix.net/~viric/soft/tm/tm-${finalAtts.version}.tar.gz";
|
||||
url = "https://vicerveza.homeunix.net/~viric/soft/tm/tm-${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-OzibwDtpZK1f+lejRLiR/bz3ybJgSt2nI6hj+DZXxKA=";
|
||||
};
|
||||
|
||||
|
||||
@@ -15,19 +15,19 @@
|
||||
zlib,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalPackage: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "tzpfms";
|
||||
version = "0.4.1";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~nabijaczleweli";
|
||||
repo = "tzpfms";
|
||||
rev = "v${finalPackage.version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-DHmJpfURyFPeOWxIkfwn4f0n2WeDYErevC1gY2oM3Vg=";
|
||||
};
|
||||
|
||||
env = {
|
||||
TZPFMS_VERSION = ''"${finalPackage.version}"'';
|
||||
TZPFMS_VERSION = ''"${finalAttrs.version}"'';
|
||||
TZPFMS_DATE = "January 1, 1980";
|
||||
};
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
gnugrep,
|
||||
file,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation (finalAttr: {
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "wifi-qr";
|
||||
version = "0.4";
|
||||
|
||||
@@ -29,7 +29,7 @@ stdenvNoCC.mkDerivation (finalAttr: {
|
||||
src = fetchFromGitHub {
|
||||
owner = "kokoye2007";
|
||||
repo = "wifi-qr";
|
||||
tag = "v${finalAttr.version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-tE+9bFDgiFS1Jj+AAwTMKjMh5wS5/gkRSQaCBR/riYQ=";
|
||||
};
|
||||
|
||||
|
||||
@@ -17,14 +17,14 @@
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildNpmPackage (final: {
|
||||
buildNpmPackage (finalAttrs: {
|
||||
pname = "winboat";
|
||||
version = "0.9.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "TibixDev";
|
||||
repo = "winboat";
|
||||
tag = "v${final.version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-DgH6CAZf+XIgBav2xd2FF2MGRgGIyOs/98vqWHA3XYw=";
|
||||
};
|
||||
|
||||
@@ -48,7 +48,7 @@ buildNpmPackage (final: {
|
||||
|
||||
guest-server = pkgsCross.mingwW64.callPackage ./guest-server.nix { };
|
||||
passthru = {
|
||||
guest-server = final.guest-server;
|
||||
guest-server = finalAttrs.guest-server;
|
||||
updateScript = nix-update-script {
|
||||
extraArgs = [
|
||||
"--subpackage"
|
||||
@@ -76,7 +76,7 @@ buildNpmPackage (final: {
|
||||
install -Dm444 icons/winboat_logo.svg $out/share/icons/hicolor/256x256/apps/winboat.svg
|
||||
|
||||
# copy the the winboat-guest-server executable and generate the zip
|
||||
cp ${lib.getExe final.guest-server} $out/share/winboat/resources/guest_server/winboat_guest_server.exe
|
||||
cp ${lib.getExe finalAttrs.guest-server} $out/share/winboat/resources/guest_server/winboat_guest_server.exe
|
||||
(cd $out/share/winboat/resources/guest_server/ && zip -r winboat_guest_server.zip .)
|
||||
|
||||
# symlink data/ and guest_server/ into parent folder
|
||||
@@ -114,7 +114,7 @@ buildNpmPackage (final: {
|
||||
mainProgram = "winboat";
|
||||
description = "Run Windows apps on Linux with seamless integration";
|
||||
homepage = "https://github.com/TibixDev/winboat";
|
||||
changelog = "https://github.com/TibixDev/winboat/releases/tag/v${final.version}";
|
||||
changelog = "https://github.com/TibixDev/winboat/releases/tag/v${finalAttrs.version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [
|
||||
rexies
|
||||
|
||||
@@ -6,14 +6,14 @@
|
||||
wayland-scanner,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttr: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "wlopm";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~leon_plickat";
|
||||
repo = "wlopm";
|
||||
rev = "v${finalAttr.version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-GrcV51mUZUaiiYhko8ysaTieJoZDcunLn1yG5k+TpQQ=";
|
||||
};
|
||||
|
||||
|
||||
@@ -297,7 +297,7 @@ let
|
||||
];
|
||||
in
|
||||
|
||||
stdenv.mkDerivation (self: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xdg-utils";
|
||||
version = "1.2.1";
|
||||
|
||||
@@ -305,7 +305,7 @@ stdenv.mkDerivation (self: {
|
||||
domain = "gitlab.freedesktop.org";
|
||||
owner = "xdg";
|
||||
repo = "xdg-utils";
|
||||
rev = "v${self.version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-58ElbrVlk+13DUODSEHBPcDDt9H+Kuee8Rz9CIcoy0I=";
|
||||
};
|
||||
|
||||
@@ -336,7 +336,7 @@ stdenv.mkDerivation (self: {
|
||||
passthru.tests.xdg-mime =
|
||||
runCommand "xdg-mime-test"
|
||||
{
|
||||
nativeBuildInputs = [ self.finalPackage ];
|
||||
nativeBuildInputs = [ finalAttrs.finalPackage ];
|
||||
preferLocalBuild = true;
|
||||
xenias = lib.mapAttrsToList (hash: urls: fetchurl { inherit hash urls; }) {
|
||||
"sha256-SL95tM1AjOi7vDnCyT10s0tvQvc+ZSZBbkNOYXfbOy0=" = [
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
runCommand,
|
||||
versionCheckHook,
|
||||
}:
|
||||
stdenv.mkDerivation (final: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "ykushcmd";
|
||||
version = "1.4.0";
|
||||
|
||||
@@ -15,7 +15,7 @@ stdenv.mkDerivation (final: {
|
||||
src = fetchFromGitHub {
|
||||
owner = "yepkit";
|
||||
repo = "ykush";
|
||||
tag = "v${final.version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-+ssr1QHKjEdK8pFkmyHYwG9tY7YHaYcIIJUqaEXixOg=";
|
||||
};
|
||||
|
||||
@@ -33,8 +33,8 @@ stdenv.mkDerivation (final: {
|
||||
|
||||
passthru.tests = {
|
||||
# We can't run any actual tests without hardware, but we can at least check the binary.
|
||||
run-only = runCommand "${final.pname}-test" ''
|
||||
${final}/bin/ykushcmd -h | grep YKUSHCMD
|
||||
run-only = runCommand "${finalAttrs.pname}-test" ''
|
||||
${finalAttrs}/bin/ykushcmd -h | grep YKUSHCMD
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
yubihsm-shell,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalPackage: {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "yubihsm-setup";
|
||||
version = "2.3.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Yubico";
|
||||
repo = "yubihsm-setup";
|
||||
tag = finalPackage.version;
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-ScpcEDNWLhywtcPPG84vZyIAQ5lF07udmGsmsyc3+iU=";
|
||||
};
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ let
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation (self: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "sbcl";
|
||||
inherit version;
|
||||
|
||||
@@ -88,7 +88,7 @@ stdenv.mkDerivation (self: {
|
||||
nativeBuildInputs = [
|
||||
texinfo
|
||||
]
|
||||
++ lib.optionals self.doCheck (
|
||||
++ lib.optionals finalAttrs.doCheck (
|
||||
[
|
||||
which
|
||||
writableTmpDirAsHomeHook
|
||||
@@ -96,14 +96,14 @@ stdenv.mkDerivation (self: {
|
||||
++ lib.optionals (builtins.elem stdenv.system strace.meta.platforms) [
|
||||
strace
|
||||
]
|
||||
++ lib.optionals (lib.versionOlder "2.4.10" self.version) [
|
||||
++ lib.optionals (lib.versionOlder "2.4.10" finalAttrs.version) [
|
||||
ps
|
||||
]
|
||||
);
|
||||
buildInputs = lib.optionals self.coreCompression (
|
||||
buildInputs = lib.optionals finalAttrs.coreCompression (
|
||||
# Declare at the point of actual use in case the caller wants to override
|
||||
# buildInputs to sidestep this.
|
||||
assert lib.assertMsg (!self.purgeNixReferences) ''
|
||||
assert lib.assertMsg (!finalAttrs.purgeNixReferences) ''
|
||||
Cannot enable coreCompression when purging Nix references, because compression requires linking in zstd
|
||||
'';
|
||||
[ zstd ]
|
||||
@@ -119,7 +119,7 @@ stdenv.mkDerivation (self: {
|
||||
# to get rid of ${glibc} dependency.
|
||||
purgeNixReferences = false;
|
||||
coreCompression = true;
|
||||
markRegionGC = self.threadSupport;
|
||||
markRegionGC = finalAttrs.threadSupport;
|
||||
disableImmobileSpace = false;
|
||||
linkableRuntime = stdenv.hostPlatform.isx86;
|
||||
|
||||
@@ -128,7 +128,7 @@ stdenv.mkDerivation (self: {
|
||||
# altogether. One by one hopefully we can fix these (on ofBorg,
|
||||
# upstream--somehow some way) in due time.
|
||||
disabledTestFiles =
|
||||
lib.optionals (lib.versionOlder "2.5.2" self.version) [ "debug.impure.lisp" ]
|
||||
lib.optionals (lib.versionOlder "2.5.2" finalAttrs.version) [ "debug.impure.lisp" ]
|
||||
++
|
||||
lib.optionals
|
||||
(builtins.elem stdenv.hostPlatform.system [
|
||||
@@ -182,7 +182,7 @@ stdenv.mkDerivation (self: {
|
||||
# "https://sourceforge.net/p/sbcl/mailman/sbcl-devel/thread/2cf20df7-01d0-44f2-8551-0df01fe55f1a%400brg.net/"),
|
||||
# but for Nix envvars are sufficiently useful that it’s worth maintaining
|
||||
# this functionality downstream.
|
||||
if lib.versionOlder "2.5.2" self.version then
|
||||
if lib.versionOlder "2.5.2" finalAttrs.version then
|
||||
[
|
||||
./dynamic-space-size-envvar-2.5.3-feature.patch
|
||||
./dynamic-space-size-envvar-2.5.3-tests.patch
|
||||
@@ -194,10 +194,10 @@ stdenv.mkDerivation (self: {
|
||||
];
|
||||
|
||||
sbclPatchPhase =
|
||||
lib.optionalString (self.disabledTestFiles != [ ]) ''
|
||||
(cd tests ; rm -f ${lib.concatStringsSep " " self.disabledTestFiles})
|
||||
lib.optionalString (finalAttrs.disabledTestFiles != [ ]) ''
|
||||
(cd tests ; rm -f ${lib.concatStringsSep " " finalAttrs.disabledTestFiles})
|
||||
''
|
||||
+ lib.optionalString self.purgeNixReferences ''
|
||||
+ lib.optionalString finalAttrs.purgeNixReferences ''
|
||||
# This is the default location to look for the core; by default in $out/lib/sbcl
|
||||
sed 's@^\(#define SBCL_HOME\) .*$@\1 "/no-such-path"@' \
|
||||
-i src/runtime/runtime.c
|
||||
@@ -209,7 +209,9 @@ stdenv.mkDerivation (self: {
|
||||
# binary. There are some tricky files in nested directories which should
|
||||
# definitely NOT be patched this way, hence just a single * (and no
|
||||
# globstar).
|
||||
substituteInPlace ${if self.purgeNixReferences then "tests" else "{tests,src/code}"}/*.{lisp,sh} \
|
||||
substituteInPlace ${
|
||||
if finalAttrs.purgeNixReferences then "tests" else "{tests,src/code}"
|
||||
}/*.{lisp,sh} \
|
||||
--replace-quiet /usr/bin/env "${posixUtils}/bin/env" \
|
||||
--replace-quiet /bin/uname "${posixUtils}/bin/uname" \
|
||||
--replace-quiet /bin/sh "${stdenv.shell}"
|
||||
@@ -218,7 +220,7 @@ stdenv.mkDerivation (self: {
|
||||
# want to override { src = ... } it might not exist. It’s required for
|
||||
# building, so create a mock version as a backup.
|
||||
if [[ ! -a version.lisp-expr ]]; then
|
||||
echo '"${self.version}.nixos"' > version.lisp-expr
|
||||
echo '"${finalAttrs.version}.nixos"' > version.lisp-expr
|
||||
fi
|
||||
'';
|
||||
|
||||
@@ -226,17 +228,17 @@ stdenv.mkDerivation (self: {
|
||||
|
||||
enableFeatures =
|
||||
assert lib.assertMsg (
|
||||
self.markRegionGC -> self.threadSupport
|
||||
finalAttrs.markRegionGC -> finalAttrs.threadSupport
|
||||
) "SBCL mark region GC requires thread support";
|
||||
lib.optional self.threadSupport "sb-thread"
|
||||
++ lib.optional self.linkableRuntime "sb-linkable-runtime"
|
||||
++ lib.optional self.coreCompression "sb-core-compression"
|
||||
lib.optional finalAttrs.threadSupport "sb-thread"
|
||||
++ lib.optional finalAttrs.linkableRuntime "sb-linkable-runtime"
|
||||
++ lib.optional finalAttrs.coreCompression "sb-core-compression"
|
||||
++ lib.optional stdenv.hostPlatform.isAarch32 "arm"
|
||||
++ lib.optional self.markRegionGC "mark-region-gc";
|
||||
++ lib.optional finalAttrs.markRegionGC "mark-region-gc";
|
||||
|
||||
disableFeatures =
|
||||
lib.optional (!self.threadSupport) "sb-thread"
|
||||
++ lib.optionals self.disableImmobileSpace [
|
||||
lib.optional (!finalAttrs.threadSupport) "sb-thread"
|
||||
++ lib.optionals finalAttrs.disableImmobileSpace [
|
||||
"immobile-space"
|
||||
"immobile-code"
|
||||
"compact-instance-header"
|
||||
@@ -246,8 +248,8 @@ stdenv.mkDerivation (self: {
|
||||
"--prefix=$out"
|
||||
"--xc-host=${lib.escapeShellArg bootstrapLisp'}"
|
||||
]
|
||||
++ map (x: "--with-${x}") self.enableFeatures
|
||||
++ map (x: "--without-${x}") self.disableFeatures
|
||||
++ map (x: "--with-${x}") finalAttrs.enableFeatures
|
||||
++ map (x: "--without-${x}") finalAttrs.disableFeatures
|
||||
++ lib.optionals (stdenv.hostPlatform.system == "aarch64-darwin") [
|
||||
"--arch=arm64"
|
||||
];
|
||||
@@ -264,7 +266,7 @@ stdenv.mkDerivation (self: {
|
||||
runHook preBuild
|
||||
|
||||
export INSTALL_ROOT=$out
|
||||
sh make.sh ${lib.concatStringsSep " " self.buildArgs}
|
||||
sh make.sh ${lib.concatStringsSep " " finalAttrs.buildArgs}
|
||||
(cd doc/manual ; make info)
|
||||
|
||||
runHook postBuild
|
||||
@@ -291,7 +293,7 @@ stdenv.mkDerivation (self: {
|
||||
sh install.sh
|
||||
|
||||
''
|
||||
+ lib.optionalString (!self.purgeNixReferences) ''
|
||||
+ lib.optionalString (!finalAttrs.purgeNixReferences) ''
|
||||
cp -r src $out/lib/sbcl
|
||||
cp -r contrib $out/lib/sbcl
|
||||
cat >$out/lib/sbcl/sbclrc <<EOF
|
||||
@@ -304,7 +306,7 @@ stdenv.mkDerivation (self: {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
setupHook = lib.optional self.purgeNixReferences (
|
||||
setupHook = lib.optional finalAttrs.purgeNixReferences (
|
||||
writeText "setupHook.sh" ''
|
||||
addEnvHooks "$targetOffset" _setSbclHome
|
||||
_setSbclHome() {
|
||||
|
||||
@@ -11,14 +11,14 @@
|
||||
gitUpdater,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (self: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "emilua_beast";
|
||||
version = "1.1.2";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "emilua";
|
||||
repo = "beast";
|
||||
rev = "v${self.version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-MASaZvhIVKmeBUcn/NjlBZ+xh+2RgwHBH2o08lklGa0=";
|
||||
};
|
||||
|
||||
|
||||
@@ -37,12 +37,12 @@ let
|
||||
++ (extraPythonPackages ps)
|
||||
);
|
||||
in
|
||||
stdenv.mkDerivation (final: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "quarto";
|
||||
version = "1.8.26";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/quarto-dev/quarto-cli/releases/download/v${final.version}/quarto-${final.version}-linux-amd64.tar.gz";
|
||||
url = "https://github.com/quarto-dev/quarto-cli/releases/download/v${finalAttrs.version}/quarto-${finalAttrs.version}-linux-amd64.tar.gz";
|
||||
hash = "sha256-rYyqbTrsw/K2pKj7gpZnfvLvlBCkij7rp7H5ockQAPA=";
|
||||
};
|
||||
|
||||
@@ -103,7 +103,7 @@ stdenv.mkDerivation (final: {
|
||||
Quarto documents are authored using markdown, an easy to write plain text format.
|
||||
'';
|
||||
homepage = "https://quarto.org/";
|
||||
changelog = "https://github.com/quarto-dev/quarto-cli/releases/tag/v${final.version}";
|
||||
changelog = "https://github.com/quarto-dev/quarto-cli/releases/tag/v${finalAttrs.version}";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
maintainers = with lib.maintainers; [
|
||||
minijackson
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finaAttrs: {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "outspin";
|
||||
version = "0.3.2";
|
||||
pyproject = true;
|
||||
@@ -14,7 +14,7 @@ buildPythonPackage (finaAttrs: {
|
||||
src = fetchFromGitHub {
|
||||
owner = "trag1c";
|
||||
repo = "outspin";
|
||||
tag = "v${finaAttrs.version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-j+J3n/p+DcfnhGfC4/NDBDl5bF39L5kIPeGJW0Zm7ls=";
|
||||
};
|
||||
|
||||
@@ -24,7 +24,7 @@ buildPythonPackage (finaAttrs: {
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/trag1c/outspin/blob/${finaAttrs.src.tag}/CHANGELOG.md";
|
||||
changelog = "https://github.com/trag1c/outspin/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
||||
description = "Conveniently read single char inputs in the console";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ sigmanificient ];
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
zlib,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (self: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "godot3";
|
||||
version = "3.6.2";
|
||||
godotBuildDescription = "X11 tools";
|
||||
@@ -34,7 +34,7 @@ stdenv.mkDerivation (self: {
|
||||
src = fetchFromGitHub {
|
||||
owner = "godotengine";
|
||||
repo = "godot";
|
||||
rev = "${self.version}-stable";
|
||||
rev = "${finalAttrs.version}-stable";
|
||||
hash = "sha256-loNjE+NmHniZ827Eb9MHSNo27F2LrURhWURjUq4d8xw=";
|
||||
};
|
||||
|
||||
@@ -90,34 +90,34 @@ stdenv.mkDerivation (self: {
|
||||
shouldBuildTools = true;
|
||||
godotBuildTarget = "release_debug";
|
||||
|
||||
lto = if self.godotBuildTarget == "release" then "full" else "none";
|
||||
lto = if finalAttrs.godotBuildTarget == "release" then "full" else "none";
|
||||
|
||||
sconsFlags = [
|
||||
"arch=${stdenv.hostPlatform.linuxArch}"
|
||||
"platform=${self.godotBuildPlatform}"
|
||||
"tools=${lib.boolToString self.shouldBuildTools}"
|
||||
"target=${self.godotBuildTarget}"
|
||||
"platform=${finalAttrs.godotBuildPlatform}"
|
||||
"tools=${lib.boolToString finalAttrs.shouldBuildTools}"
|
||||
"target=${finalAttrs.godotBuildTarget}"
|
||||
"bits=${toString stdenv.hostPlatform.parsed.cpu.bits}"
|
||||
"lto=${self.lto}"
|
||||
"lto=${finalAttrs.lto}"
|
||||
];
|
||||
|
||||
shouldWrapBinary = self.shouldBuildTools;
|
||||
shouldInstallManual = self.shouldBuildTools;
|
||||
shouldPatchBinary = self.shouldBuildTools;
|
||||
shouldInstallHeaders = self.shouldBuildTools;
|
||||
shouldInstallShortcut = self.shouldBuildTools && self.godotBuildPlatform != "server";
|
||||
shouldWrapBinary = finalAttrs.shouldBuildTools;
|
||||
shouldInstallManual = finalAttrs.shouldBuildTools;
|
||||
shouldPatchBinary = finalAttrs.shouldBuildTools;
|
||||
shouldInstallHeaders = finalAttrs.shouldBuildTools;
|
||||
shouldInstallShortcut = finalAttrs.shouldBuildTools && finalAttrs.godotBuildPlatform != "server";
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
]
|
||||
++ lib.optional self.shouldInstallManual "man"
|
||||
++ lib.optional self.shouldBuildTools "dev";
|
||||
++ lib.optional finalAttrs.shouldInstallManual "man"
|
||||
++ lib.optional finalAttrs.shouldBuildTools "dev";
|
||||
|
||||
builtGodotBinNamePattern =
|
||||
if self.godotBuildPlatform == "server" then "godot_server.*" else "godot.*";
|
||||
if finalAttrs.godotBuildPlatform == "server" then "godot_server.*" else "godot.*";
|
||||
|
||||
godotBinInstallPath = "bin";
|
||||
installedGodotBinName = self.pname;
|
||||
installedGodotBinName = finalAttrs.pname;
|
||||
installedGodotShortcutFileName = "org.godotengine.Godot3.desktop";
|
||||
installedGodotShortcutDisplayName = "Godot Engine 3";
|
||||
|
||||
@@ -162,7 +162,7 @@ stdenv.mkDerivation (self: {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
runtimeDependencies = lib.optionals self.shouldPatchBinary (
|
||||
runtimeDependencies = lib.optionals finalAttrs.shouldPatchBinary (
|
||||
map lib.getLib [
|
||||
alsa-lib
|
||||
libpulseaudio
|
||||
@@ -172,7 +172,8 @@ stdenv.mkDerivation (self: {
|
||||
|
||||
meta = {
|
||||
homepage = "https://godotengine.org";
|
||||
description = "Free and Open Source 2D and 3D game engine (" + self.godotBuildDescription + ")";
|
||||
description =
|
||||
"Free and Open Source 2D and 3D game engine (" + finalAttrs.godotBuildDescription + ")";
|
||||
license = lib.licenses.mit;
|
||||
platforms = [
|
||||
"i686-linux"
|
||||
|
||||
@@ -101,14 +101,14 @@ let
|
||||
allGrammars = lib.filter (p: !(p.meta.broken or false)) (lib.attrValues builtGrammars);
|
||||
|
||||
in
|
||||
rustPlatform.buildRustPackage (final: {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "tree-sitter";
|
||||
version = "0.25.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tree-sitter";
|
||||
repo = "tree-sitter";
|
||||
tag = "v${final.version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-aHszbvLCLqCwAS4F4UmM3wbSb81QuG9FM7BDHTu1ZvM=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
@@ -202,7 +202,7 @@ rustPlatform.buildRustPackage (final: {
|
||||
homepage = "https://github.com/tree-sitter/tree-sitter";
|
||||
description = "Parser generator tool and an incremental parsing library";
|
||||
mainProgram = "tree-sitter";
|
||||
changelog = "https://github.com/tree-sitter/tree-sitter/releases/tag/v${final.version}";
|
||||
changelog = "https://github.com/tree-sitter/tree-sitter/releases/tag/v${finalAttrs.version}";
|
||||
longDescription = ''
|
||||
Tree-sitter is a parser generator tool and an incremental parsing library.
|
||||
It can build a concrete syntax tree for a source file and efficiently update the syntax tree as the source file is edited.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
testers,
|
||||
chromedriver,
|
||||
}:
|
||||
chromium.mkDerivation (_: {
|
||||
chromium.mkDerivation (finalAttrs: {
|
||||
name = "chromedriver";
|
||||
packageName = "chromedriver";
|
||||
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
kernelModuleMakeFlags,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttr: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xpad-noone";
|
||||
version = "0-unstable-2024-01-10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "medusalix";
|
||||
repo = finalAttr.pname;
|
||||
repo = finalAttrs.pname;
|
||||
tag = "c3d1610";
|
||||
hash = "sha256-jDRyvbU9GsnM1ARTuwnoD7ZXlfBxne13UpSKRo7HHSY=";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user