1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 17:10:48 +00:00

Merge pull request #46420 from romildo/upd.xsettingsd

xsettingsd: git-2015-06-14 -> 1.0.0
This commit is contained in:
Jörg Thalheim 2018-09-09 14:17:06 +01:00 committed by GitHub
commit 288a542a9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,39 +1,38 @@
{ stdenv, fetchFromGitHub, scons, libX11, pkgconfig }:
{ stdenv, fetchFromGitHub, scons, pkgconfig, libX11 }:
stdenv.mkDerivation rec {
name = "xsettingsd-${version}";
version = "git-2015-06-14";
version = "1.0.0";
src = fetchFromGitHub {
owner = "derat";
repo = "xsettingsd";
rev = "b4999f5e9e99224caf97d09f25ee731774ecd7be";
sha256 = "18cp6a66ji483lrvf0vq855idwmcxd0s67ijpydgjlsr70c65j7s";
rev = "v${version}";
sha256 = "05m4jlw0mgwp24cvyklncpziq1prr2lg0cq9c055sh4n9d93d07v";
};
patches = [
./SConstruct.patch
];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libX11 scons ];
nativeBuildInputs = [ scons pkgconfig ];
buildInputs = [ libX11 ];
buildPhase = ''
mkdir -p "$out"
scons \
-j$NIX_BUILD_CORES -l$NIX_BUILD_CORES \
"prefix=$out"
scons -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES
'';
installPhase = ''
mkdir -p "$out"/bin
install xsettingsd "$out"/bin
install dump_xsettings "$out"/bin
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.bsd2;
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = [ maintainers.romildo ];
};
}