nawk: 20121220 -> 20180827

awk.tar.gz is no longer available from princeton.edu; The One True Awk
is now on GitHub.
This commit is contained in:
chkno 2020-05-07 09:01:42 -07:00 committed by GitHub
parent 2655e34cfa
commit 8ff99ba57e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,21 +1,18 @@
{ stdenv, fetchurl, yacc }: { stdenv, fetchFromGitHub, yacc }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "nawk-20121220"; pname = "nawk";
version = "20180827";
src = fetchurl { src = fetchFromGitHub {
url = "https://www.cs.princeton.edu/~bwk/btl.mirror/awk.tar.gz"; owner = "onetrueawk";
sha256 = "10wvdn7xwc5bbp5h7l0b9fxby3bds21n8a34z54i8kjsbhb95h4d"; repo = "awk";
rev = version;
sha256 = "0qcsxhcwg6g3c0zxmbipqa8d8d5n8zxrq0hymb8yavsaz103fcl6";
}; };
nativeBuildInputs = [ yacc ]; nativeBuildInputs = [ yacc ];
unpackPhase = ''
mkdir build
cd build
tar xvf ${src}
'';
patchPhase = '' patchPhase = ''
substituteInPlace ./makefile \ substituteInPlace ./makefile \
--replace "YACC = yacc -d -S" "" --replace "YACC = yacc -d -S" ""