2 batteryviewer = { lib, stdenv, gtk4, pkg-config, }:
4 pname = "batteryviewer";
7 src = lib.cleanSource ./.;
9 nativeBuildInputs = [ pkg-config ];
10 buildInputs = [ gtk4 ];
12 makeFlags = [ "prefix=$(out)" ];
14 in { pkgs ? import <nixpkgs> { }, }: {
15 batteryviewer = pkgs.callPackage batteryviewer { };