nixpkgs/pkgs/tools/X11/xsettingsd/default.nix

39 lines
923 B
Nix
Raw Normal View History

2015-02-28 10:24:07 +00:00
{ stdenv, fetchFromGitHub, scons, libX11, pkgconfig }:
stdenv.mkDerivation rec {
name = "xsettingsd-${version}";
2016-03-03 12:01:02 +00:00
version = "git-2015-06-14";
2015-02-28 10:24:07 +00:00
src = fetchFromGitHub {
owner = "derat";
repo = "xsettingsd";
2016-03-03 12:01:02 +00:00
rev = "b4999f5e9e99224caf97d09f25ee731774ecd7be";
sha256 = "18cp6a66ji483lrvf0vq855idwmcxd0s67ijpydgjlsr70c65j7s";
2015-02-28 10:24:07 +00:00
};
patches = [
./SConstruct.patch
];
buildInputs = [ libX11 scons pkgconfig ];
buildPhase = ''
mkdir -p "$out"
scons \
-j$NIX_BUILD_CORES -l$NIX_BUILD_CORES \
"prefix=$out"
'';
installPhase = ''
mkdir -p "$out"/bin
install xsettingsd "$out"/bin
install dump_xsettings "$out"/bin
'';
meta = with stdenv.lib; {
description = "Provides settings to X11 applications via the XSETTINGS specification";
homepage = https://github.com/derat/xsettingsd;
2016-03-03 12:01:02 +00:00
license = licenses.bsd2;
2015-02-28 10:24:07 +00:00
platforms = platforms.linux;
};
}