@@ -4,17 +4,17 @@ assert targetSystem == "x86_64-windows";
44
55let
66
7- newCommon = import ./new- common.nix { inherit inputs targetSystem ; } ;
7+ common = import ./common.nix { inherit inputs targetSystem ; } ;
88
9- inherit ( newCommon ) sourceLib pkgs srcWithoutNix yarn nodejs originalPackageJson commonSources electronVersion ;
9+ inherit ( common ) sourceLib pkgs srcWithoutNix yarn nodejs originalPackageJson commonSources electronVersion ;
1010 inherit ( sourceLib ) installerClusters ;
1111 inherit ( pkgs ) lib ;
1212
1313 genClusters = lib . genAttrs installerClusters ;
1414
1515in rec {
1616
17- inherit newCommon ;
17+ inherit common ;
1818
1919 package = preSigning ; # XXX: this is slightly wrong, as not all files are in their final relative paths
2020
@@ -50,23 +50,23 @@ in rec {
5050 nativeBuildInputs = [ yarn nodejs wine64 ]
5151 ++ ( with pkgs ; [ python3 pkgconfig unzip ] ) ;
5252 buildInputs = with pkgs ; [ libusb ] ;
53- CARDANO_WALLET_VERSION = newCommon . cardanoWalletVersion ;
54- CARDANO_NODE_VERSION = newCommon . cardanoNodeVersion ;
53+ CARDANO_WALLET_VERSION = common . cardanoWalletVersion ;
54+ CARDANO_NODE_VERSION = common . cardanoNodeVersion ;
5555 CI = "nix" ;
56- NETWORK = newCommon . launcherConfigs . ${ cluster } . launcherConfig . networkName ;
56+ NETWORK = common . launcherConfigs . ${ cluster } . launcherConfig . networkName ;
5757 BUILD_REV = sourceLib . buildRev ;
5858 BUILD_REV_SHORT = sourceLib . buildRevShort ;
5959 BUILD_COUNTER = sourceLib . buildCounter ;
6060 NODE_ENV = "production" ;
6161 BUILDTYPE = "Release" ;
62- configurePhase = newCommon . setupCacheAndGypDirs + ''
62+ configurePhase = common . setupCacheAndGypDirs + ''
6363 # Grab all cached `node_modules` from above:
6464 cp -r ${ node_modules } /. ./
6565 chmod -R +w .
6666 '' ;
6767 patchedPackageJson = pkgs . writeText "package.json" ( builtins . toJSON (
6868 pkgs . lib . recursiveUpdate originalPackageJson {
69- productName = newCommon . launcherConfigs . ${ cluster } . installerConfig . spacedName ;
69+ productName = common . launcherConfigs . ${ cluster } . installerConfig . spacedName ;
7070 }
7171 ) ) ;
7272 buildPhase = ''
@@ -206,12 +206,12 @@ in rec {
206206
207207 nativeModules = pkgs . stdenv . mkDerivation {
208208 name = "daedalus-native-modules" ;
209- src = newCommon . srcLockfiles ;
209+ src = common . srcLockfiles ;
210210 nativeBuildInputs = [ yarn nodejs ]
211211 ++ ( with fresherPkgs ; [ wineWowPackages . stableFull fontconfig winetricks samba /* samba for bin/ntlm_auth */ ] )
212212 ++ ( with pkgs ; [ python3 pkgconfig jq file procps ] ) ;
213213 buildInputs = with pkgs ; [ libusb ] ;
214- configurePhase = newCommon . setupCacheAndGypDirs + ''
214+ configurePhase = common . setupCacheAndGypDirs + ''
215215 # Grab all cached `node_modules` from above:
216216 cp -r ${ node_modules } /. ./
217217 chmod -R +w .
@@ -319,7 +319,7 @@ in rec {
319319
320320 ${ mkSection "Patching node_modules" }
321321 # Point electron-rebuild to the correct Node (Electron) headers location:
322- ${ newCommon . patchElectronRebuild } /bin/* \
322+ ${ common . patchElectronRebuild } /bin/* \
323323 "$(winepath -w ${ electronHeadersWithNodeLib . src } | sed -r 's,\\,\\\\\\\\,g')" \
324324 "$(winepath -w ${ electronHeadersWithNodeLib } | sed -r 's,\\,\\\\\\\\,g')"
325325
@@ -403,7 +403,7 @@ in rec {
403403
404404 native = rec {
405405 nodejs = pkgs . fetchzip {
406- url = "https://nodejs.org/dist/v${ newCommon . nodejs . version } /node-v${ newCommon . nodejs . version } -win-x64.zip" ;
406+ url = "https://nodejs.org/dist/v${ common . nodejs . version } /node-v${ common . nodejs . version } -win-x64.zip" ;
407407 hash = "sha256-n8ux67xrq3Rta1nE715y1m040oaLxUI2bIt12RaJdeM=" ;
408408 } ;
409409
@@ -433,14 +433,14 @@ in rec {
433433 '' ) ;
434434
435435 nsisFiles = genClusters ( cluster : pkgs . runCommand "nsis-files" {
436- buildInputs = [ newCommon . daedalus-installer pkgs . glibcLocales ] ;
436+ buildInputs = [ common . daedalus-installer pkgs . glibcLocales ] ;
437437 } ''
438438 mkdir installers
439439 cp -vir ${ ../../package.json } package.json
440440 cd installers
441441
442442 export LANG=en_US.UTF-8
443- cp -v ${ newCommon . launcherConfigs . ${ cluster } . configFiles } /* .
443+ cp -v ${ common . launcherConfigs . ${ cluster } . configFiles } /* .
444444 make-installer --cardano dummy \
445445 --os win64 \
446446 -o $out \
@@ -451,7 +451,7 @@ in rec {
451451
452452 mkdir $out
453453 cp -v daedalus.nsi uninstaller.nsi $out/
454- cp -v ${ newCommon . launcherConfigs . ${ cluster } . configFiles } /* $out/
454+ cp -v ${ common . launcherConfigs . ${ cluster } . configFiles } /* $out/
455455 ls -lR $out
456456 '' ) ;
457457
@@ -488,7 +488,7 @@ in rec {
488488 fastlist = pkgs . pkgsCross . mingwW64 . callPackage ./fastlist.nix { } ;
489489
490490 preSigning = genClusters ( cluster : let
491- installDir = newCommon . launcherConfigs . ${ cluster } . installerConfig . spacedName ;
491+ installDir = common . launcherConfigs . ${ cluster } . installerConfig . spacedName ;
492492 in pkgs . runCommand "pre-signing" { buildInputs = [ pkgs . unzip ] ; } ''
493493 mkdir $out
494494 cd $out
@@ -505,7 +505,7 @@ in rec {
505505 cp -v ${ fastlist } /bin/fastlist.exe "../release/win32-x64/${ installDir } -win32-x64/resources/app/dist/main/fastlist.exe"
506506 ln -s ${ ../../installers/nsis_plugins } nsis_plugins
507507
508- cp -vr ${ newCommon . daedalus-bridge . ${ cluster } } /bin/* .
508+ cp -vr ${ common . daedalus-bridge . ${ cluster } } /bin/* .
509509 cp -v ${ nsisFiles . ${ cluster } } /{*.yaml,*.json,daedalus.nsi,*.key,*.cert} .
510510 cp ${ unsignedUninstaller . ${ cluster } } /uninstall.exe .
511511 if [ -f ${ nsisFiles . ${ cluster } } /block-0.bin ]; then
0 commit comments