mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
33 lines
753 B
Nix
33 lines
753 B
Nix
{ lib, stdenv, fetchFromGitHub, btrfs-progs }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "compsize";
|
|
version = "1.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kilobyte";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-OX41ChtHX36lVRL7O2gH21Dfw6GPPEClD+yafR/PFm8=";
|
|
};
|
|
|
|
buildInputs = [ btrfs-progs ];
|
|
|
|
installFlags = [
|
|
"PREFIX=${placeholder "out"}"
|
|
];
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/share/man/man8
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "btrfs: Find compression type/ratio on a file or set of files";
|
|
mainProgram = "compsize";
|
|
homepage = "https://github.com/kilobyte/compsize";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ CrazedProgrammer ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|