acpilight: migrate to finalAttrs, switch from sha256 to hash (#527671)

This commit is contained in:
Ryan Hendrickson
2026-06-03 20:23:33 +00:00
committed by GitHub
+5 -5
View File
@@ -7,14 +7,14 @@
udevCheckHook,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "acpilight";
version = "1.2";
src = fetchgit {
url = "https://gitlab.com/wavexx/acpilight.git";
tag = "v${version}";
sha256 = "1r0r3nx6x6vkpal6vci0zaa1n9dfacypldf6k8fxg7919vzxdn1w";
tag = "v${finalAttrs.version}";
hash = "sha256-PNjW/04hndcdmsY1ej1TriUblPogsm2ounObbrodGeQ=";
};
pyenv = python3.withPackages (
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
substituteInPlace Makefile --replace-fail udevadm true
'';
buildInputs = [ pyenv ];
buildInputs = [ finalAttrs.pyenv ];
makeFlags = [ "DESTDIR=$(out) prefix=" ];
@@ -45,4 +45,4 @@ stdenv.mkDerivation rec {
platforms = lib.platforms.linux;
mainProgram = "xbacklight";
};
}
})