nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 54 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 pkg-config, 6 gettext, 7 glib, 8 gtk3, 9 libnotify, 10 wrapGAppsHook3, 11 libayatana-appindicator, 12 nix-update-script, 13}: 14 15stdenv.mkDerivation (finalAttrs: { 16 pname = "batticonplus"; 17 version = "2.0.1"; 18 19 src = fetchFromGitHub { 20 owner = "artist4xlibre"; 21 repo = "batticonplus"; 22 tag = "v${finalAttrs.version}"; 23 hash = "sha256-H9ZoiQ5zWMIoWWol2a6f9Z8g4o9DIHYdF+/nEsBfuzc="; 24 }; 25 26 nativeBuildInputs = [ 27 pkg-config 28 gettext 29 wrapGAppsHook3 30 ]; 31 32 buildInputs = [ 33 glib 34 gtk3 35 libnotify 36 libayatana-appindicator 37 ]; 38 39 makeFlags = [ 40 "PREFIX=${placeholder "out"}" 41 "WITH_APPINDICATOR=1" 42 ]; 43 44 passthru.updateScript = nix-update-script { }; 45 46 meta = { 47 description = "Lightweight battery status icon for the system tray and notifier (based on cbatticon)"; 48 mainProgram = "batticonplus"; 49 homepage = "https://github.com/artist4xlibre/batticonplus"; 50 license = lib.licenses.gpl2; 51 platforms = lib.platforms.linux; 52 maintainers = with lib.maintainers; [ yechielw ]; 53 }; 54})