fixup extraRepos
This commit is contained in:
parent
c56e35c94d
commit
ce192ec941
|
@ -59,7 +59,7 @@ let
|
|||
{ hash ? "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
|
||||
, patches ? [ ], extraRepos ? [ ], ... }@args:
|
||||
let
|
||||
dontUnpack = patches == [ ] and extraRepos == [ ];
|
||||
dontUnpack = patches == [ ] && extraRepos == [ ];
|
||||
version = portVersions.${name} or args.version;
|
||||
in with buildPackages.buildPackages;
|
||||
stdenvNoCC.mkDerivation (args // {
|
||||
|
@ -89,12 +89,12 @@ let
|
|||
''
|
||||
runHook preBuild
|
||||
export CONTRIB_DIR=$NIX_BUILD_TOP/contrib
|
||||
export GENODE_DIR=${if havePatches then "$(pwd)" else genodeSources}
|
||||
export GENODE_DIR=${if dontUnpack then genodeSources else "$(pwd)"}
|
||||
for repo in $extraRepos; do
|
||||
ln -s $repo $GENODE_DIR/repos/
|
||||
done
|
||||
mkdir $CONTRIB_DIR
|
||||
$GENODE_DIR/tool/ports/prepare_port ${name} CHECK_HASH=no
|
||||
for repo in $extraRepos; do
|
||||
ln -s ${repo} $GENODE_DIR/repos/
|
||||
done
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in New Issue