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