2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, btrfs-progs }:
|
2018-05-12 22:10:36 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-05 10:03:33 +00:00
|
|
|
pname = "compsize";
|
2021-02-10 00:59:14 +00:00
|
|
|
version = "1.5";
|
2018-05-12 22:10:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kilobyte";
|
2021-01-21 11:11:51 +00:00
|
|
|
repo = pname;
|
2019-05-05 10:03:33 +00:00
|
|
|
rev = "v${version}";
|
2021-02-10 00:59:14 +00:00
|
|
|
sha256 = "sha256-OX41ChtHX36lVRL7O2gH21Dfw6GPPEClD+yafR/PFm8=";
|
2018-05-12 22:10:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ btrfs-progs ];
|
|
|
|
|
2021-03-24 03:00:01 +00:00
|
|
|
installFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
];
|
|
|
|
|
|
|
|
preInstall = ''
|
2018-05-12 22:10:36 +00:00
|
|
|
mkdir -p $out/share/man/man8
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-05-12 22:10:36 +00:00
|
|
|
description = "btrfs: Find compression type/ratio on a file or set of files";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "compsize";
|
2021-03-24 03:00:01 +00:00
|
|
|
homepage = "https://github.com/kilobyte/compsize";
|
|
|
|
license = licenses.gpl2Plus;
|
2018-05-12 22:10:36 +00:00
|
|
|
maintainers = with maintainers; [ CrazedProgrammer ];
|
2021-03-24 03:00:01 +00:00
|
|
|
platforms = platforms.linux;
|
2018-05-12 22:10:36 +00:00
|
|
|
};
|
|
|
|
}
|