2021-10-13 15:03:31 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2010-01-13 21:11:48 +00:00
|
|
|
|
2010-03-17 14:44:42 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-02-18 18:31:27 +00:00
|
|
|
pname = "ncompress";
|
|
|
|
version = "5.0";
|
2010-03-17 14:44:42 +00:00
|
|
|
|
2021-10-13 15:03:31 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vapier";
|
|
|
|
repo = "ncompress";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-Yhs3C5/kR7Ve56E84usYJprxIMAIwXVahLi1N9TIfj0=";
|
2010-01-13 21:11:48 +00:00
|
|
|
};
|
|
|
|
|
2021-10-13 15:03:31 +01:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
installTargets = "install_core";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/uncompress $out/bin/uncompress-ncompress
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://ncompress.sourceforge.net/";
|
2021-10-13 15:03:31 +01:00
|
|
|
license = licenses.publicDomain;
|
2010-01-27 12:12:35 +00:00
|
|
|
description = "A fast, simple LZW file compressor";
|
2021-10-13 15:03:31 +01:00
|
|
|
platforms = platforms.unix;
|
2010-01-13 21:11:48 +00:00
|
|
|
};
|
|
|
|
}
|