fnotifystat: fix src/homepage, moved to github

Also touchup the build to match pattern used for other ColinIanKing utilities

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