Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
code-cursor: prepare for Darwin
Browse files Browse the repository at this point in the history
sarahec committed Jan 13, 2025
1 parent c89b16f commit 18dfc27
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions pkgs/by-name/co/code-cursor/package.nix
Original file line number Diff line number Diff line change
@@ -27,22 +27,15 @@ let
"aarch64-linux"
];


src = sources.${stdenvNoCC.hostPlatform.system};

appimageContents = appimageTools.extractType2 {
inherit version pname src;
};

in
stdenvNoCC.mkDerivation {
inherit pname version;

src = appimageTools.wrapType2 { inherit version pname src; };

nativeBuildInputs = [ makeWrapper ];
wrappedAppImage = appimageTools.wrapType2 { inherit version pname src; };

installPhase = ''
appimageInstall = ''
runHook preInstall
mkdir -p $out/
@@ -62,6 +55,16 @@ stdenvNoCC.mkDerivation {
runHook postInstall
'';

in
stdenvNoCC.mkDerivation {
inherit pname version;

src = wrappedAppImage;

nativeBuildInputs = [ makeWrapper ];

installPhase = appimageInstall;

passthru = {
inherit sources;
updateScript = writeScript "update.sh" ''

0 comments on commit 18dfc27

Please sign in to comment.