32 lines
735 B
Nix
32 lines
735 B
Nix
{ lib, stdenv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "vscodium";
|
|
version = "1.66.2";
|
|
|
|
executableName = "codium";
|
|
longName = "VSCodium";
|
|
shortName = "vscodium";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/VSCodium/vscodium/archive/refs/tags/${version}.tar.gz";
|
|
sha256 = "";
|
|
};
|
|
|
|
buildPhase = ''
|
|
rm -rf VSCode*
|
|
rm -rf vscode
|
|
|
|
. get_repo.sh
|
|
|
|
SHOULD_BUILD=yes CI_BUILD=no OS_NAME=osx VSCODE_ARCH=arm64 . build.sh
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p "$out/Applications/${longName}.app" "$out/bin"
|
|
cp -r ./* "$out/Applications/${longName}.app"
|
|
ln -s "$out/Applications/${longName}.app/Contents/Resources/app/bin/${executableName}" "$out/bin/${executableName}"
|
|
'';
|
|
}
|