diff options
author | éclairevoyant <848000+eclairevoyant@users.noreply.github.com> | 2023-08-21 22:08:52 -0400 |
---|---|---|
committer | éclairevoyant <848000+eclairevoyant@users.noreply.github.com> | 2023-08-22 21:19:35 -0400 |
commit | f0cd6223f7bbfd714cac8194e982d85b54a4d7a0 (patch) | |
tree | 8da41d9e1c91a9d3afec8af4bcd4bdcb422b010f /pkgs/tools/archivers | |
parent | 90cb3f4cdb66dbb4389471ada60b0b8716b5e0db (diff) |
_7zz: replace rec with finalAttrs idiom
Diffstat (limited to 'pkgs/tools/archivers')
-rw-r--r-- | pkgs/tools/archivers/7zz/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/tools/archivers/7zz/default.nix b/pkgs/tools/archivers/7zz/default.nix index 76605861c34e7..6df03f1d83d26 100644 --- a/pkgs/tools/archivers/7zz/default.nix +++ b/pkgs/tools/archivers/7zz/default.nix @@ -24,12 +24,12 @@ let x86_64-linux = "../../cmpl_gcc_x64.mak"; }.${stdenv.hostPlatform.system} or "../../cmpl_gcc.mak"; # generic build in -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "7zz"; version = "23.01"; src = fetchurl { - url = "https://7-zip.org/a/7z${lib.replaceStrings [ "." ] [ "" ] version}-src.tar.xz"; + url = "https://7-zip.org/a/7z${lib.replaceStrings [ "." ] [ "" ] finalAttrs.version}-src.tar.xz"; hash = { free = "sha256-F1ybQsyReF2NBR/3eMZySvxVEntpwq2VUlRCHp/5nZs="; unfree = "sha256-NWBxAHNg5aGCTZkEmT6LJIC1G1cOjJ+vfA9Y6+S/n3Q="; @@ -97,7 +97,7 @@ stdenv.mkDerivation rec { runHook preInstall install -Dm555 -t $out/bin b/*/7zz${stdenv.hostPlatform.extensions.executable} - install -Dm444 -t $out/share/doc/${pname} ../../../../DOC/*.txt + install -Dm444 -t $out/share/doc/${finalAttrs.pname} ../../../../DOC/*.txt runHook postInstall ''; @@ -124,4 +124,4 @@ stdenv.mkDerivation rec { platforms = platforms.unix ++ platforms.windows; mainProgram = "7zz"; }; -} +}) |