diff options
author | Francesco Gazzetta <fgaz@fgaz.me> | 2024-02-19 16:04:16 +0100 |
---|---|---|
committer | Francesco Gazzetta <fgaz@fgaz.me> | 2024-03-05 09:50:11 +0100 |
commit | 86da15228fb789cd23f6dd9d97b46828ce2d05e2 (patch) | |
tree | d1271eaba76d8d394ea2ccd0a205d41c1b653305 /pkgs/applications | |
parent | 0b331402e902205973de1cc88fca2f57271cb09b (diff) |
gnome-obfuscate: use finalAttrs pattern
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/graphics/gnome-obfuscate/default.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/applications/graphics/gnome-obfuscate/default.nix b/pkgs/applications/graphics/gnome-obfuscate/default.nix index 3ea22fff3dc1c..49499f7d7322e 100644 --- a/pkgs/applications/graphics/gnome-obfuscate/default.nix +++ b/pkgs/applications/graphics/gnome-obfuscate/default.nix @@ -18,7 +18,7 @@ , Foundation }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "gnome-obfuscate"; version = "0.0.9"; @@ -26,13 +26,13 @@ stdenv.mkDerivation rec { domain = "gitlab.gnome.org"; owner = "World"; repo = "Obfuscate"; - rev = version; + rev = finalAttrs.version; hash = "sha256-aUhzact437V/bSsG2Ddu2mC03LbyXFg+hJiuGy5NQfQ="; }; cargoDeps = rustPlatform.fetchCargoTarball { - inherit src; - name = "${pname}-${version}"; + inherit (finalAttrs) src; + name = "${finalAttrs.pname}-${finalAttrs.version}"; hash = "sha256-HUQvdCmzjdmuJGDLtC/86yzbRimLzx+XbW29f+Ua48w="; }; @@ -66,4 +66,4 @@ stdenv.mkDerivation rec { mainProgram = "obfuscate"; maintainers = with maintainers; [ fgaz ]; }; -} +}) |