g810-led: fix build, use finalAttrs
This commit is contained in:
parent
2ba42c0d1a
commit
75aa3a7a68
1 changed files with 7 additions and 4 deletions
|
@ -5,14 +5,14 @@
|
||||||
, profile ? "/etc/g810-led/profile"
|
, profile ? "/etc/g810-led/profile"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "g810-led";
|
pname = "g810-led";
|
||||||
version = "0.4.3";
|
version = "0.4.3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "MatMoul";
|
owner = "MatMoul";
|
||||||
repo = pname;
|
repo = "g810-led";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${finalAttrs.version}";
|
||||||
hash = "sha256-GKHtQ7DinqfhclDdPO94KtTLQhhonAoWS4VOvs6CMhY=";
|
hash = "sha256-GKHtQ7DinqfhclDdPO94KtTLQhhonAoWS4VOvs6CMhY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -22,6 +22,9 @@ stdenv.mkDerivation rec {
|
||||||
--replace "/etc/g810-led/profile" "${profile}"
|
--replace "/etc/g810-led/profile" "${profile}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# GCC 13 cannot find `uint16_t` and other similar types by default anymore
|
||||||
|
env.CXXFLAGS = "-include cstdint";
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
hidapi
|
hidapi
|
||||||
];
|
];
|
||||||
|
@ -48,4 +51,4 @@ stdenv.mkDerivation rec {
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue