about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/ed/generic.nix
blob: 70ffdb4c4af93779dfc6be714ebbe7a44a6ea89c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ pname
, version
, src
, patches ? [ ]
, meta
}:

# Note: this package is used for bootstrapping fetchurl, and thus cannot use
# fetchpatch! All mutable patches (generated by GitHub or cgit) that are needed
# here should be included directly in Nixpkgs as files.

{ lib
, stdenv
, fetchurl
, lzip
, runtimeShellPackage
}:

stdenv.mkDerivation {
  inherit pname version src patches;

  nativeBuildInputs = [ lzip ];
  buildInputs = [ runtimeShellPackage ];

  configureFlags = [
    "CC=${stdenv.cc.targetPrefix}cc"
  ];

  doCheck = true;

  inherit meta;
}