3
0
Fork 0
forked from mirrors/nixpkgs

compsize: init at 2018-04-07 (#40217)

This commit is contained in:
CrazedProgrammer 2018-05-13 00:10:36 +02:00 committed by xeji
parent 82e58d8458
commit da08831345
3 changed files with 37 additions and 0 deletions

View file

@ -43,6 +43,11 @@
github = "ChengCat";
name = "Yucheng Zhang";
};
CrazedProgrammer = {
email = "crazedprogrammer@gmail.com";
github = "CrazedProgrammer";
name = "CrazedProgrammer";
};
CrystalGamma = {
email = "nixos@crystalgamma.de";
github = "CrystalGamma";

View file

@ -0,0 +1,30 @@
{ stdenv, fetchFromGitHub, btrfs-progs }:
stdenv.mkDerivation rec {
name = "compsize-${version}";
version = "2018-04-07";
src = fetchFromGitHub {
owner = "kilobyte";
repo = "compsize";
rev = "903f772e37fc0ac6d6cf94ddbc98c691763c1e62";
sha256 = "0jps8n0xsdh4mcww5q29rzysbv50iq6rmihxrf99lzgrw0sw5m7k";
};
buildInputs = [ btrfs-progs ];
installPhase = ''
mkdir -p $out/bin
mkdir -p $out/share/man/man8
install -m 0755 compsize $out/bin
install -m 0444 compsize.8 $out/share/man/man8
'';
meta = with stdenv.lib; {
description = "btrfs: Find compression type/ratio on a file or set of files";
homepage = https://github.com/kilobyte/compsize;
license = licenses.gpl2;
maintainers = with maintainers; [ CrazedProgrammer ];
platforms = platforms.linux;
};
}

View file

@ -1062,6 +1062,8 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Foundation AddressBook;
};
compsize = callPackage ../os-specific/linux/compsize { };
coturn = callPackage ../servers/coturn { };
coursier = callPackage ../development/tools/coursier {};