2
0
Fork 0

fixup extraRepos

This commit is contained in:
Ehmry - 2020-12-02 19:26:30 +01:00
parent c56e35c94d
commit ce192ec941
1 changed files with 5 additions and 5 deletions

View File

@ -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
'';