2021-02-13 14:23:35 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libX11 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xsettingsd";
|
2021-02-13 14:23:35 +00:00
|
|
|
version = "1.0.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "derat";
|
|
|
|
repo = "xsettingsd";
|
|
|
|
rev = "v${version}";
|
2021-02-13 14:23:35 +00:00
|
|
|
sha256 = "sha256-CIYshZqJICuL8adKHIN4R6nudaqWOCK2UPrGhsKf9pE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ libX11 ];
|
|
|
|
|
2021-02-13 14:23:35 +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
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Provides settings to X11 applications via the XSETTINGS specification";
|
|
|
|
homepage = "https://github.com/derat/xsettingsd";
|
|
|
|
license = licenses.bsd3;
|
2021-02-13 14:23:35 +00:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|