2021-02-10 13:30:42 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libX11 }:
|
2015-02-28 10:24:07 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "xsettingsd";
|
2021-02-10 13:30:42 +00:00
|
|
|
version = "1.0.2";
|
2015-02-28 10:24:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "derat";
|
|
|
|
repo = "xsettingsd";
|
2018-09-09 13:50:22 +01:00
|
|
|
rev = "v${version}";
|
2021-02-10 13:30:42 +00:00
|
|
|
sha256 = "sha256-CIYshZqJICuL8adKHIN4R6nudaqWOCK2UPrGhsKf9pE=";
|
2015-02-28 10:24:07 +00:00
|
|
|
};
|
|
|
|
|
2021-02-10 13:30:42 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2018-09-09 13:50:22 +01:00
|
|
|
|
|
|
|
buildInputs = [ libX11 ];
|
|
|
|
|
2021-02-10 13:30:42 +00:00
|
|
|
# we end up with symlinked unit files if we don't move them around ourselves
|
|
|
|
postFixup = ''
|
|
|
|
rm -r $out/lib/systemd
|
|
|
|
mv $out/share/systemd $out/lib
|
2015-02-28 10:24:07 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-02-28 10:24:07 +00:00
|
|
|
description = "Provides settings to X11 applications via the XSETTINGS specification";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/derat/xsettingsd";
|
2018-09-09 13:50:22 +01:00
|
|
|
license = licenses.bsd3;
|
2021-02-10 13:30:42 +00:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
2015-02-28 10:24:07 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|