2021-01-17 09:17:16 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, scons, pkg-config, libX11 }:
|
2015-02-28 10:24:07 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "xsettingsd";
|
2018-09-09 13:50:22 +01:00
|
|
|
version = "1.0.0";
|
2015-02-28 10:24:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "derat";
|
|
|
|
repo = "xsettingsd";
|
2018-09-09 13:50:22 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "05m4jlw0mgwp24cvyklncpziq1prr2lg0cq9c055sh4n9d93d07v";
|
2015-02-28 10:24:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./SConstruct.patch
|
|
|
|
];
|
|
|
|
|
2021-01-17 09:17:16 +00:00
|
|
|
nativeBuildInputs = [ scons pkg-config ];
|
2018-09-09 13:50:22 +01:00
|
|
|
|
|
|
|
buildInputs = [ libX11 ];
|
|
|
|
|
2015-02-28 10:24:07 +00:00
|
|
|
buildPhase = ''
|
2018-09-09 13:50:22 +01:00
|
|
|
scons -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES
|
2015-02-28 10:24:07 +00:00
|
|
|
'';
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2015-02-28 10:24:07 +00:00
|
|
|
installPhase = ''
|
2018-09-09 13:50:22 +01:00
|
|
|
install -D -t "$out"/bin xsettingsd dump_xsettings
|
|
|
|
install -D -t "$out"/usr/share/man/man1 xsettingsd.1 dump_xsettings.1
|
2015-02-28 10:24:07 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-02-28 10:24:07 +00:00
|
|
|
description = "Provides settings to X11 applications via the XSETTINGS specification";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/derat/xsettingsd";
|
2018-09-09 13:50:22 +01:00
|
|
|
license = licenses.bsd3;
|
2015-02-28 10:24:07 +00:00
|
|
|
platforms = platforms.linux;
|
2018-09-09 13:50:22 +01:00
|
|
|
maintainers = [ maintainers.romildo ];
|
2015-02-28 10:24:07 +00:00
|
|
|
};
|
|
|
|
}
|