Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2655e34cfaf6
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8ff99ba57e65
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on May 7, 2020

  1. nawk: 20121220 -> 20180827

    awk.tar.gz is no longer available from princeton.edu; The One True Awk
    is now on GitHub.
    chkno authored May 7, 2020
    Copy the full SHA
    8ff99ba View commit details
Showing with 8 additions and 11 deletions.
  1. +8 −11 pkgs/tools/text/nawk/default.nix
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" ""