2021-10-17 02:12:59 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-02-19 19:06:45 +00:00
|
|
|
pname = "ncompress";
|
|
|
|
version = "5.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-17 02:12:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vapier";
|
|
|
|
repo = "ncompress";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-Yhs3C5/kR7Ve56E84usYJprxIMAIwXVahLi1N9TIfj0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-10-17 02:12:59 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
installTargets = "install_core";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/uncompress $out/bin/uncompress-ncompress
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://ncompress.sourceforge.net/";
|
2021-10-17 02:12:59 +00:00
|
|
|
license = licenses.publicDomain;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A fast, simple LZW file compressor";
|
2021-10-17 02:12:59 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|