Sovran_SystemsOS/modules/systemd-manager_sovran_systems.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

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