c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
30 lines
496 B
Nix
30 lines
496 B
Nix
{ 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
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
inherit pname version src patches;
|
|
|
|
nativeBuildInputs = [ lzip ];
|
|
|
|
configureFlags = [
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
inherit meta;
|
|
}
|