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

50 lines
1.1 KiB
Nix
Raw Normal View History

2024-03-08 10:05:43 +00:00
{ lib, stdenv
, fetchFromGitHub
, gtk4-layer-shell
, gtkmm4
, pkg-config
2024-06-08 19:55:53 +00:00
, nix-update-script
, wireplumber
, wrapGAppsHook4
2024-03-08 10:05:43 +00:00
}:
2024-06-09 01:11:54 +00:00
stdenv.mkDerivation {
2024-03-08 10:05:43 +00:00
pname = "sysvol";
2024-06-15 00:28:03 +00:00
version = "0-unstable-2024-06-13";
2024-03-08 10:05:43 +00:00
src = fetchFromGitHub {
2024-06-08 19:55:53 +00:00
owner = "System64fumo";
2024-03-08 10:05:43 +00:00
repo = "sysvol";
2024-06-15 00:28:03 +00:00
rev = "af882d40df7c6e1a0ec415d934f643933f455b5a";
hash = "sha256-3gB1u7fEi7EB+FWZKS8ddJ53RC5Chyw3fTBX8Z0Itis=";
2024-03-08 10:05:43 +00:00
};
postPatch = ''
2024-03-08 12:25:12 +00:00
substituteInPlace Makefile \
--replace-fail 'pkg-config' ''${PKG_CONFIG}
2024-03-08 12:25:12 +00:00
'';
2024-03-08 10:05:43 +00:00
nativeBuildInputs = [
pkg-config
wrapGAppsHook4 #< to plumb `GDK_PIXBUF_MODULE_FILE` through, and get not-blurry icons
2024-03-08 10:05:43 +00:00
];
2024-03-08 10:05:43 +00:00
buildInputs = [
gtk4-layer-shell
gtkmm4
wireplumber
2024-03-08 10:05:43 +00:00
];
makeFlags = [ "DESTDIR=${placeholder "out"}" ];
2024-03-08 10:05:43 +00:00
2024-06-08 19:55:53 +00:00
passthru.updateScript = nix-update-script {
extraArgs = [ "--version" "branch" ];
};
2024-03-08 10:05:43 +00:00
meta = {
description = "A basic GTK4 volume indicator";
2024-06-08 19:55:53 +00:00
homepage = "https://github.com/System64fumo/sysvol";
2024-03-08 10:05:43 +00:00
mainProgram = "sysvol";
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ colinsane ];
};
2024-06-09 01:11:54 +00:00
}