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

39 lines
930 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, scons, pkg-config, libX11 }:
2015-02-28 10:24:07 +00:00
stdenv.mkDerivation rec {
pname = "xsettingsd";
version = "1.0.0";
2015-02-28 10:24:07 +00:00
src = fetchFromGitHub {
owner = "derat";
repo = "xsettingsd";
rev = "v${version}";
sha256 = "05m4jlw0mgwp24cvyklncpziq1prr2lg0cq9c055sh4n9d93d07v";
2015-02-28 10:24:07 +00:00
};
patches = [
./SConstruct.patch
];
nativeBuildInputs = [ scons pkg-config ];
buildInputs = [ libX11 ];
2015-02-28 10:24:07 +00:00
buildPhase = ''
scons -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES
2015-02-28 10:24:07 +00:00
'';
2015-02-28 10:24:07 +00:00
installPhase = ''
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
'';
meta = with lib; {
2015-02-28 10:24:07 +00:00
description = "Provides settings to X11 applications via the XSETTINGS specification";
homepage = "https://github.com/derat/xsettingsd";
license = licenses.bsd3;
2015-02-28 10:24:07 +00:00
platforms = platforms.linux;
maintainers = [ maintainers.romildo ];
2015-02-28 10:24:07 +00:00
};
}