1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/X11/xsettingsd/default.nix
José Romildo Malaquias 68102e793d xsettingsd: git-2015-06-14 -> 1.0.0
- Update to version 1.0.0
- Install man pages
- Fix license
- Add maintainer
2018-09-09 09:50:48 -03:00

39 lines
940 B
Nix

{ stdenv, fetchFromGitHub, scons, pkgconfig, libX11 }:
stdenv.mkDerivation rec {
name = "xsettingsd-${version}";
version = "1.0.0";
src = fetchFromGitHub {
owner = "derat";
repo = "xsettingsd";
rev = "v${version}";
sha256 = "05m4jlw0mgwp24cvyklncpziq1prr2lg0cq9c055sh4n9d93d07v";
};
patches = [
./SConstruct.patch
];
nativeBuildInputs = [ scons pkgconfig ];
buildInputs = [ libX11 ];
buildPhase = ''
scons -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES
'';
installPhase = ''
install -D -t "$out"/bin xsettingsd dump_xsettings
install -D -t "$out"/usr/share/man/man1 xsettingsd.1 dump_xsettings.1
'';
meta = with stdenv.lib; {
description = "Provides settings to X11 applications via the XSETTINGS specification";
homepage = https://github.com/derat/xsettingsd;
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = [ maintainers.romildo ];
};
}