nixos-config/pkgs/lipsum.nix

33 lines
694 B
Nix
Raw Normal View History

2024-06-11 01:10:39 -03:00
{
stdenv,
fetchFromGitHub,
pkg-config,
vala,
wrapGAppsHook,
}:
stdenv.mkDerivation rec {
2023-02-13 11:02:55 -03:00
pname = "lipsum";
version = "0.0.1";
2024-06-11 01:10:39 -03:00
src = fetchFromGitHub {
owner = "hannenz";
repo = "lipsum";
rev = "0fb31e6ede10fbd78d7652f5fb21670cddd8e3ed";
hash = "sha256-a6uv0tJulN9cAGWxvQr8B0PUJEY8Rx4e759xzS66Xlo=";
};
2023-02-13 11:02:55 -03:00
2024-06-11 01:10:39 -03:00
nativeBuildInputs = [
2023-02-13 11:02:55 -03:00
pkg-config
vala
2023-08-03 21:54:32 -03:00
wrapGAppsHook
2023-02-13 11:02:55 -03:00
];
makeFlags = [ "PRG=${pname}" ];
2023-02-13 11:02:55 -03:00
installPhase = ''
install -Dm 755 "$pname" "$out/bin/$pname"
2023-08-03 21:54:32 -03:00
install -Dm 755 "./data/de.hannenz.lipsum.gschema.xml" "$out/share/glib-2.0/schemas/de.hannenz.lipsum.gschema.xml"
glib-compile-schemas "$out/share/glib-2.0/schemas/"
2023-02-13 11:02:55 -03:00
'';
}