Skip to content

Commit

Permalink
nawk: 20121220 -> 20180827
Browse files Browse the repository at this point in the history
awk.tar.gz is no longer available from princeton.edu; The One True Awk
is now on GitHub.
  • Loading branch information
chkno committed May 7, 2020
1 parent 2655e34 commit 8ff99ba
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions pkgs/tools/text/nawk/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
{ stdenv, fetchurl, yacc }:
{ stdenv, fetchFromGitHub, yacc }:

stdenv.mkDerivation rec {
name = "nawk-20121220";
pname = "nawk";
version = "20180827";

src = fetchurl {
url = "https://www.cs.princeton.edu/~bwk/btl.mirror/awk.tar.gz";
sha256 = "10wvdn7xwc5bbp5h7l0b9fxby3bds21n8a34z54i8kjsbhb95h4d";
src = fetchFromGitHub {
owner = "onetrueawk";
repo = "awk";
rev = version;
sha256 = "0qcsxhcwg6g3c0zxmbipqa8d8d5n8zxrq0hymb8yavsaz103fcl6";
};

nativeBuildInputs = [ yacc ];

unpackPhase = ''
mkdir build
cd build
tar xvf ${src}
'';

patchPhase = ''
substituteInPlace ./makefile \
--replace "YACC = yacc -d -S" ""
Expand Down

0 comments on commit 8ff99ba

Please sign in to comment.