2023-08-22 20:05:09 +00:00
|
|
|
{ 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
|
2024-06-20 14:57:18 +00:00
|
|
|
, runtimeShellPackage
|
2023-08-22 20:05:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit pname version src patches;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ lzip ];
|
2024-06-20 14:57:18 +00:00
|
|
|
buildInputs = [ runtimeShellPackage ];
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
inherit meta;
|
|
|
|
}
|