Sovran_SystemsOS/modules/systemd-manager_sovran_systems.nix

41 lines
1.0 KiB
Nix
Raw Normal View History

2024-03-01 17:45:55 -08:00
{ lib, stdenv, fetchzip, buildPackages }:
2024-03-18 13:36:12 -07:00
stdenv.mkDerivation rec {
pname = "systemd-manager";
2024-08-07 21:22:28 -07:00
version = "17";
2024-03-01 17:45:55 -08:00
2024-03-18 13:36:12 -07:00
src = fetchzip {
url = "https://github.com/hardpixel/systemd-manager/releases/download/v${version}/systemd-manager-v${version}.zip";
2024-08-07 21:22:28 -07:00
hash = "sha256-NaOqhiVTACiGiUn8ISTtBMIDkeGkv1M2kCDnAxl5cwk=";
2024-03-18 13:36:12 -07:00
stripRoot = false;
};
2024-03-01 17:45:55 -08:00
2024-03-18 13:36:12 -07:00
passthru = {
extensionUuid = "systemd-manager@hardpixel.eu";
extensionPortalSlug = "systemd-manager";
};
2024-03-01 17:45:55 -08:00
2024-03-18 13:36:12 -07:00
nativeBuildInputs = [ buildPackages.glib ];
2024-03-01 17:45:55 -08:00
2024-03-18 13:36:12 -07:00
buildPhase = ''
runHook preBuild
if [ -d schemas ]; then
glib-compile-schemas --strict schemas
fi
runHook postBuild
'';
2024-03-01 17:45:55 -08:00
2024-03-18 13:36:12 -07:00
installPhase = ''
runHook preInstall
mkdir -p $out/share/gnome-shell/extensions
cp -r -T . $out/share/gnome-shell/extensions/${passthru.extensionUuid}
runHook postInstall
'';
2024-03-01 17:45:55 -08:00
2024-03-18 13:36:12 -07:00
meta = with lib; {
description = "GNOME Shell extension to manage systemd services";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ ];
homepage = "https://github.com/hardpixel/systemd-manager";
};
}