nixpkgs/pkgs/tools/X11/xsettingsd/default.nix
zowoq 31f5dd3f36 treewide: editorconfig fixes
- remove trailing whitespace
- use spaces for indentation
2021-01-20 09:11:11 +10:00

39 lines
930 B
Nix

{ lib, stdenv, fetchFromGitHub, scons, pkg-config, libX11 }:
stdenv.mkDerivation rec {
pname = "xsettingsd";
version = "1.0.0";
src = fetchFromGitHub {
owner = "derat";
repo = "xsettingsd";
rev = "v${version}";
sha256 = "05m4jlw0mgwp24cvyklncpziq1prr2lg0cq9c055sh4n9d93d07v";
};
patches = [
./SConstruct.patch
];
nativeBuildInputs = [ scons pkg-config ];
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 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 ];
};
}