1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-24 10:56:56 +00:00
nixpkgs/pkgs/tools/X11/xsettingsd/default.nix

40 lines
950 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
];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libX11 scons ];
2015-02-28 10:24:07 +00:00
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;
};
}