Home

nur @main - refs - log -
-
https://git.jolheiser.com/nur.git
My NUR
tree log patch
fix: prospect-mail back to original repo Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmUDPNoACgkQuFOtpdp7 v3oPqA/+K1WTi2xtHnnUlW51g+PbQWoDmiBRE+mApZS43iabnuYX9iqiu9I1d3aJ JDvqDI1JPb6xDRDnlwrBuKyDAwO7l1/HNHbzcLs939nVHexudotTJJjKsgp6o2mA thAzyCXgEiTt8Sgv4ag4tLVzl44gzmrPqVQAye1Yj4NN5Bf4C8yz4bg4Rh/T8bs9 i2YOqWcEdzKxzOM02dw6v4ROFrgG9EguUIO49BHmfhK6wfqwxAETxhKMkkT3EPrb K7i9K6y9rXV+t7k7QLaIRF7ukJwiKSKP3yAeebV1CnA622mVI+XkH/aifAdnpSfT +7DOWuF0sMfAeC76bYPj8PPaQx3g4AqDRK3dgHYqdtP6f33ejZNeuD7vdqQvGZ2A kfVwc2ZX8XmZPZ4e+U++O1b131CjqyCmDCnwQEWfGIKoAVA3hrJsCVD8pMVPhakU Kyl1nI0Gq6T8iP9Hc/qBz5kRnxa/fOcnOyIL/Ml3OO/c4tQsdP3Wx4ty9bKCwKQx TkmkmT8S0r4Go5yE03kI3kPntlzZ1ttZHj5+CBFB2g70Lv9KkyOk50aQGHa1p4IQ j9+1k9EdkAA4SRNkAa7oPxP+TSxzbQeHdASIxgZMtPJvIAye0/Jzlvbu67Kbw/bB HhcgEdXwkcQfw+YBYE3bbCvmjnZYpg2HSTiYwsB4fpH2nkmyIqw= =uGxb -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
1 year ago
2 changed files, 11 additions(+), 10 deletions(-)
M justfile -> justfile
diff --git a/justfile b/justfile
index f24e4918a431e8c7cffa5cb828c0fc962a663d9c..81cf27a977315a124629e56a90125bf86034d544 100644
--- a/justfile
+++ b/justfile
@@ -6,7 +6,8 @@ readme:
 	@nu -c 'nu README.nu | save --force README.md'
 
 build package:
-	@nix-build -E 'with import <nixpkgs> { }; callPackage ./pkgs/{{package}} { }'
+	@git add .
+	@nix build .#{{package}}
 
 update-flake:
 	@nix flake update
M pkgs/prospect-mail/default.nix -> pkgs/prospect-mail/default.nix
diff --git a/pkgs/prospect-mail/default.nix b/pkgs/prospect-mail/default.nix
index 657188f6e8f4f5c59ab69478f86f2de0d506cace..b6321b9cad8758288124d4d10f0790fc77b0ece3 100644
--- a/pkgs/prospect-mail/default.nix
+++ b/pkgs/prospect-mail/default.nix
@@ -5,7 +5,7 @@   fetchFromGitHub,
   makeWrapper,
   makeDesktopItem,
   copyDesktopItems,
-  nodejs_18,
+  nodejs_20,
   fetchYarnDeps,
   fixup_yarn_lock,
   electron,
@@ -16,24 +16,24 @@   which,
 }:
 stdenv.mkDerivation rec {
   pname = "prospect-mail";
-{
   fetchYarnDeps,
+  stdenv,
 
   src = fetchFromGitHub {
-    owner = "jolheiser";
+    owner = "julian-alarcon";
     repo = pname;
-    rev = "v${version}";
-  lib,
+  fetchYarnDeps,
   makeWrapper,
+    sha256 = "sha256-taFVVExBKsE6GToiNWh8E0tVlx8qaWw5t8krydyiG24=";
   };
 
   offlineCache = fetchYarnDeps {
     yarnLock = "${src}/yarn.lock";
-  lib,
   fetchYarnDeps,
+  copyDesktopItems,
   };
 
-  nativeBuildInputs = [nodejs_18.pkgs.yarn fixup_yarn_lock nodejs_18 copyDesktopItems makeWrapper];
+  nativeBuildInputs = [nodejs_20.pkgs.yarn fixup_yarn_lock nodejs_20 copyDesktopItems makeWrapper];
 
   configurePhase = ''
     runHook preConfigure
@@ -60,7 +60,7 @@       if stdenv.hostPlatform.isAarch64
       then "--arm64"
       else "--x64"
     } \
-      -c.electronDist=${electron}/lib/electron \
+      -c.electronDist=${electron}/libexec/electron \
       -c.electronVersion=${electron.version}
 
     runHook postBuild
@@ -76,7 +76,7 @@       then "darwin-"
       else "linux-"
     }${lib.optionalString stdenv.hostPlatform.isAarch64 "arm64-"}unpacked/resources/app.asar $out/share/prospect-mail/
 
-    pushd build/icons
+    pushd build
     for image in *png; do
       mkdir -p $out/share/icons/hicolor/''${image%.png}/apps
       cp -r $image $out/share/icons/hicolor/''${image%.png}/apps/prospect-mail.png