blob: c6320180f3c9c2fd842de69acf1365d98e6a5db4 (
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 = "d835fa813f82501eb668708af33afc42010707cf";
sha256 = "sha256-YXLa0fjqND7Gys4KK/CZmRqGU70gMVqU3T+j+e6S9qw=";
};
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
;
};
})
|