Skip to content

Commit e6cf3e6

Browse files
trilium-next-desktop: fix Darwin build
1 parent 34e731d commit e6cf3e6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pkgs/by-name/tr/trilium-next-desktop/package.nix

+7-3
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,16 @@ let
115115
darwin = stdenv.mkDerivation {
116116
inherit pname version meta;
117117

118-
src = fetchzip darwinSource;
118+
src = fetchurl darwinSource;
119+
120+
nativeBuildInputs = [
121+
unzip
122+
];
119123

120124
installPhase = ''
121125
runHook preInstall
122-
mkdir -p $out/Applications
123-
cp -r *.app $out/Applications
126+
mkdir -p "$out/Applications/TriliumNext Notes.app"
127+
cp -r * "$out/Applications/TriliumNext Notes.app/"
124128
runHook postInstall
125129
'';
126130
};

0 commit comments

Comments
 (0)