blob: 4599827668578e4ecebbdfbdb9216012c9dd6258 (
plain)
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
37
38
39
40
41
42
43
44
45
|
args_@{
lib,
fetchFromGitLab,
wlroots,
libdisplay-info,
hwdata,
lcms2,
...
}:
let
metadata = rec {
domain = "gitlab.freedesktop.org";
owner = "wlroots";
repo = "wlroots";
repo_git = "https://${domain}/${owner}/${repo}";
branch = "master";
rev = "d305934ebe6852785a1f425ee96861f0b7280d76";
sha256 = "sha256-NnPSC5p/phTFe+nWp9vl8LUbmBO/RXSSUuDZ2boucXY=";
};
ignore = [
"wlroots"
"hwdata"
"libdisplay-info"
"lcms2"
];
args = lib.filterAttrs (n: _v: (!builtins.elem n ignore)) args_;
in
(wlroots.override args).overrideAttrs (old: {
version = "${metadata.rev}";
buildInputs = old.buildInputs ++ [
hwdata
libdisplay-info
lcms2
];
src = fetchFromGitLab {
inherit (metadata)
domain
owner
repo
rev
sha256
;
};
})
|