powerstat: 0.02.25 -> 0.02.27

(#151442)

authored by Renaud and committed by GitHub 864de8cb 3fb18b1a

+13 -12
+13 -12
pkgs/os-specific/linux/powerstat/default.nix
··· 1 - { stdenv, lib, fetchurl }: 1 + { stdenv, lib, fetchFromGitHub }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "powerstat"; 5 - version = "0.02.25"; 5 + version = "0.02.27"; 6 6 7 - src = fetchurl { 8 - url = "https://kernel.ubuntu.com/~cking/tarballs/${pname}/${pname}-${version}.tar.gz"; 9 - sha256 = "sha256-C6MCOXnElDI69QkLKd2X2SLved8cRCN0Q6BhUvvqsTY="; 7 + src = fetchFromGitHub { 8 + owner = "ColinIanKing"; 9 + repo = pname; 10 + rev = "V${version}"; 11 + hash = "sha256-P6DhsHnB+ak35JpUfD8Q8XbgMhI1QKKe31B8uMT2ZcY="; 10 12 }; 11 13 12 - installFlags = [ "DESTDIR=${placeholder "out"}" ]; 13 - 14 - postInstall = '' 15 - mv $out/usr/* $out 16 - rm -r $out/usr 17 - ''; 14 + installFlags = [ 15 + "BINDIR=${placeholder "out"}/bin" 16 + "MANDIR=${placeholder "out"}/share/man/man8" 17 + "BASHDIR=${placeholder "out"}/share/bash-completion/completions" 18 + ]; 18 19 19 20 meta = with lib; { 20 21 description = "Laptop power measuring tool"; 21 - homepage = "https://kernel.ubuntu.com/~cking/powerstat/"; 22 + homepage = "https://github.com/ColinIanKing/powerstat"; 22 23 license = licenses.gpl2; 23 24 platforms = platforms.linux; 24 25 maintainers = with maintainers; [ womfoo ];