at 24.11-pre 32 lines 753 B view raw
1{ lib, stdenv, fetchFromGitHub, btrfs-progs }: 2 3stdenv.mkDerivation rec { 4 pname = "compsize"; 5 version = "1.5"; 6 7 src = fetchFromGitHub { 8 owner = "kilobyte"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-OX41ChtHX36lVRL7O2gH21Dfw6GPPEClD+yafR/PFm8="; 12 }; 13 14 buildInputs = [ btrfs-progs ]; 15 16 installFlags = [ 17 "PREFIX=${placeholder "out"}" 18 ]; 19 20 preInstall = '' 21 mkdir -p $out/share/man/man8 22 ''; 23 24 meta = with lib; { 25 description = "btrfs: Find compression type/ratio on a file or set of files"; 26 mainProgram = "compsize"; 27 homepage = "https://github.com/kilobyte/compsize"; 28 license = licenses.gpl2Plus; 29 maintainers = with maintainers; [ CrazedProgrammer ]; 30 platforms = platforms.linux; 31 }; 32}