50 lines
1.1 KiB
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-07";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "System64fumo";
|
|
repo = "sysvol";
|
|
rev = "56d7dcda4b246e71b2c6d29cbb2315bddf446032";
|
|
hash = "sha256-WOcy2R0El1vl57Zimb7Hoh9XYTnH/zJS1n+gcaTU4V8=";
|
|
};
|
|
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 ];
|
|
};
|
|
}
|