nix-files/pkgs/additional/sysvol/default.nix

50 lines
1.1 KiB
Nix

{ lib, stdenv
, fetchFromGitHub
, gtk4-layer-shell
, gtkmm4
, pkg-config
, nix-update-script
, wireplumber
, wrapGAppsHook4
}:
stdenv.mkDerivation {
pname = "sysvol";
version = "0-unstable-2024-06-09";
src = fetchFromGitHub {
owner = "System64fumo";
repo = "sysvol";
rev = "8e374e596803944ddaa5db3af20124732cdafa89";
hash = "sha256-GAbOfiF0LXtiunKiGnMKh/SD23BfdjpT9LQhg7yNvIM=";
};
postPatch = ''
substituteInPlace Makefile \
--replace-fail 'pkg-config' ''${PKG_CONFIG}
'';
nativeBuildInputs = [
pkg-config
wrapGAppsHook4 #< to plumb `GDK_PIXBUF_MODULE_FILE` through, and get not-blurry icons
];
buildInputs = [
gtk4-layer-shell
gtkmm4
wireplumber
];
makeFlags = [ "DESTDIR=${placeholder "out"}" ];
passthru.updateScript = nix-update-script {
extraArgs = [ "--version" "branch" ];
};
meta = {
description = "A basic GTK4 volume indicator";
homepage = "https://github.com/System64fumo/sysvol";
mainProgram = "sysvol";
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ colinsane ];
};
}