diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2024-01-18 12:15:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-18 12:15:10 +0100 |
commit | 629c218ee9241a6322b08157f768057a62a95196 (patch) | |
tree | ceabf9c0fbe1cc5fc117403c52870f9517851fc7 /pkgs | |
parent | 1a9b062e6fa5cc3c435699e18d03445679d99d5f (diff) | |
parent | 75aa3a7a689aacdae1a3bab9b8e217e642740410 (diff) |
Merge pull request #281237 from TomaSajt/g810-led
g810-led: fix build, use finalAttrs
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/misc/g810-led/default.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/misc/g810-led/default.nix b/pkgs/misc/g810-led/default.nix index 0f38188c407dc..5f1c7e1fdae1d 100644 --- a/pkgs/misc/g810-led/default.nix +++ b/pkgs/misc/g810-led/default.nix @@ -5,14 +5,14 @@ , profile ? "/etc/g810-led/profile" }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "g810-led"; version = "0.4.3"; src = fetchFromGitHub { owner = "MatMoul"; - repo = pname; - rev = "refs/tags/v${version}"; + repo = "g810-led"; + rev = "refs/tags/v${finalAttrs.version}"; hash = "sha256-GKHtQ7DinqfhclDdPO94KtTLQhhonAoWS4VOvs6CMhY="; }; @@ -22,6 +22,9 @@ stdenv.mkDerivation rec { --replace "/etc/g810-led/profile" "${profile}" ''; + # GCC 13 cannot find `uint16_t` and other similar types by default anymore + env.CXXFLAGS = "-include cstdint"; + buildInputs = [ hidapi ]; @@ -48,4 +51,4 @@ stdenv.mkDerivation rec { maintainers = with maintainers; [ fab ]; platforms = platforms.linux; }; -} +}) |