mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-04 03:53:56 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchpatch
|
|
, ninja
|
|
, libusb1
|
|
, meson
|
|
, boost
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, microsoft-gsl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ite-backlight";
|
|
version = "1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hexagonal-sun";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1hany4bn93mac9qyz97r1l858d48zdvvmn3mabzr3441ivqr9j0a";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
ninja
|
|
pkg-config
|
|
meson
|
|
microsoft-gsl
|
|
];
|
|
|
|
buildInputs = [
|
|
boost
|
|
libusb1
|
|
];
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "fix-gcc13-build-failure.patch";
|
|
url = "https://github.com/hexagonal-sun/ite-backlight/commit/dc8c19d4785d80cbe7a82869daee1f723d3f3fb2.patch";
|
|
hash = "sha256-iTRTVy7qB2z1ip135b8k3RufTBzeJaP1wdrRWN9tPsU=";
|
|
})
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Commands to control ite-backlight devices";
|
|
longDescription = ''
|
|
This project aims to provide a set of simple utilities for controlling ITE 8291
|
|
keyboard backlight controllers.
|
|
'';
|
|
license = with licenses; [ mit ];
|
|
homepage = "https://github.com/hexagonal-sun/ite-backlight";
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ hexagonal-sun ];
|
|
};
|
|
}
|