acpilight: migrate to finalAttrs, switch from sha256 to hash
Assisted-by: Cursor Composer 2.5
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user