mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00
ncompress: modernize build and switch to a github source
install only core tools move uncompress to uncompress-ncompress
This commit is contained in:
parent
0d0182ff7e
commit
80dd267525
@ -1,15 +0,0 @@
|
|||||||
source $stdenv/setup
|
|
||||||
installFlags="PREFIX=$out"
|
|
||||||
|
|
||||||
preBuild() {
|
|
||||||
cp Makefile.def Makefile
|
|
||||||
sed -i GNUmakefile -e 's/compress %/%/g'
|
|
||||||
}
|
|
||||||
|
|
||||||
postInstall() {
|
|
||||||
rm $out/bin/uncompress* $out/bin/zcat*
|
|
||||||
ln -s compress $out/bin/uncompress
|
|
||||||
ln -s compress $out/bin/zcat
|
|
||||||
}
|
|
||||||
|
|
||||||
genericBuild
|
|
@ -1,20 +1,27 @@
|
|||||||
{lib, stdenv, fetchurl}:
|
{ lib, stdenv, fetchFromGitHub }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "ncompress";
|
pname = "ncompress";
|
||||||
version = "5.0";
|
version = "5.0";
|
||||||
|
|
||||||
builder = ./builder.sh;
|
src = fetchFromGitHub {
|
||||||
|
owner = "vapier";
|
||||||
src = fetchurl {
|
repo = "ncompress";
|
||||||
url = "mirror://sourceforge/project/ncompress/${pname}-${version}.tar.gz";
|
rev = "v${version}";
|
||||||
sha256 = "004r086c11sw9vg2j3srgxpz98w8pycjl33bk3pgqnd0s92igrn4";
|
sha256 = "sha256-Yhs3C5/kR7Ve56E84usYJprxIMAIwXVahLi1N9TIfj0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
|
installTargets = "install_core";
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mv $out/bin/uncompress $out/bin/uncompress-ncompress
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
homepage = "http://ncompress.sourceforge.net/";
|
homepage = "http://ncompress.sourceforge.net/";
|
||||||
license = lib.licenses.publicDomain;
|
license = licenses.publicDomain;
|
||||||
description = "A fast, simple LZW file compressor";
|
description = "A fast, simple LZW file compressor";
|
||||||
platforms = lib.platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user