lol
1{ stdenv, fetchFromGitHub, scons, libX11, pkgconfig }:
2
3stdenv.mkDerivation rec {
4 name = "xsettingsd-${version}";
5 version = "0.0.1";
6
7 src = fetchFromGitHub {
8 owner = "derat";
9 repo = "xsettingsd";
10 rev = "2a516a91d8352b3b93a7a1ef5606dbd21fa06b7c";
11 sha256 = "0f9lc5w18x6xs9kf72jpixprp3xb7wqag23cy8zrm33n2bza9dj0";
12 };
13
14 patches = [
15 ./SConstruct.patch
16 ];
17
18 buildInputs = [ libX11 scons pkgconfig ];
19 buildPhase = ''
20 mkdir -p "$out"
21 scons \
22 -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES \
23 "prefix=$out"
24 '';
25
26 installPhase = ''
27 mkdir -p "$out"/bin
28 install xsettingsd "$out"/bin
29 install dump_xsettings "$out"/bin
30 '';
31
32 meta = with stdenv.lib; {
33 description = "Provides settings to X11 applications via the XSETTINGS specification";
34 homepage = https://github.com/derat/xsettingsd;
35 platforms = platforms.linux;
36 };
37}