compsize: use upstream's installer

This commit is contained in:
Peter Hoeg 2021-03-24 11:00:01 +08:00
parent 9d8e05e088
commit 96a4f3f97c

View File

@ -13,18 +13,19 @@ stdenv.mkDerivation rec {
buildInputs = [ btrfs-progs ];
installPhase = ''
mkdir -p $out/bin
installFlags = [
"PREFIX=${placeholder "out"}"
];
preInstall = ''
mkdir -p $out/share/man/man8
install -m 0755 compsize $out/bin
install -m 0444 compsize.8 $out/share/man/man8
'';
meta = with lib; {
description = "btrfs: Find compression type/ratio on a file or set of files";
homepage = "https://github.com/kilobyte/compsize";
license = licenses.gpl2Plus;
homepage = "https://github.com/kilobyte/compsize";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ CrazedProgrammer ];
platforms = platforms.linux;
platforms = platforms.linux;
};
}