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 12:41:18 +00: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 12:50:22 +00: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 12:50:22 +00: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 01:11:51 +00:00
|
|
|
homepage = "https://github.com/derat/xsettingsd";
|
2018-09-09 12:50:22 +00: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;
|
|
|
|
};
|
|
|
|
}
|