-
Notifications
You must be signed in to change notification settings - Fork 6
/
derivation.nix
36 lines (33 loc) · 949 Bytes
/
derivation.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
let
self = import ./. { pkgs = null; system = null; };
in {
rustPlatform
, udev
, libxcb ? xorg.libxcb, xorg ? { }
, python3, pkg-config
, hostPlatform
, lib
, libiconv, CoreGraphics ? darwin.apple_sdk.frameworks.CoreGraphics, darwin
, buildType ? "release"
, cargoLock ? crate.cargoLock
, source ? crate.src
, crate ? self.lib.crate
}: with lib; rustPlatform.buildRustPackage {
pname = crate.name;
inherit (crate) version;
buildInputs = [ libxcb ] ++
optionals hostPlatform.isLinux [ udev ]
++ optionals hostPlatform.isDarwin [ libiconv CoreGraphics ];
nativeBuildInputs = [ pkg-config python3 ];
src = source;
inherit cargoLock buildType;
doCheck = false;
meta = {
description = "DDC/CI display control application";
homepage = "https://github.com/arcnmx/ddcset-rs";
license = licenses.mit;
maintainers = [ maintainers.arcnmx ];
platforms = platforms.unix;
mainProgram = "screenstub";
};
}