summary refs log tree commit diff
path: root/pkgs/tools/text/gnupatch/default.nix
blob: 272eaee785c17e90d73d5c0f73c3d8081d8282d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{stdenv, fetchurl}:

stdenv.mkDerivation {
  name = "gnupatch-2.5.4";
  src = fetchurl {
    url = mirror://gnu/patch/patch-2.5.4.tar.gz;
    md5 = "ee5ae84d115f051d87fcaaef3b4ae782";
  };

  # Hack around ancient configure script: doesn't build on many newer
  # platforms unless a platform is specified.
  configureFlags = "dummy";
  
  patches = if stdenv.isDarwin then [./setmode.patch] else [];
}