sudo: switch to finalAttrs pattern

This commit is contained in:
Gutyina Gergő 2024-01-19 13:19:28 +01:00
parent d6536909f6
commit d52d5e584a
No known key found for this signature in database

View file

@ -12,12 +12,12 @@
, withSssd ? false
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "sudo";
version = "1.9.15p5";
src = fetchurl {
url = "https://www.sudo.ws/dist/${pname}-${version}.tar.gz";
url = "https://www.sudo.ws/dist/sudo-${finalAttrs.version}.tar.gz";
hash = "sha256-VY0QuaGZH7O5+n+nsH7EQFt677WzywsIcdvIHjqI5Vg=";
};
@ -86,4 +86,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ delroth ];
platforms = platforms.linux;
};
}
})