mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 11:13:30 +00:00
9d5713843f
A crazy refactor that factors the sources to a separate file, in order to accomodate extra sources in parallel to the stable one.
31 lines
496 B
Nix
31 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;
|
|
}
|