tart: init at 1.6.0
This commit is contained in:
parent
19e1801b37
commit
b229e76363
46
pkgs/applications/virtualization/tart/default.nix
Normal file
46
pkgs/applications/virtualization/tart/default.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{ lib
|
||||
, stdenvNoCC
|
||||
, fetchurl
|
||||
, makeWrapper
|
||||
# Softnet support ("--net-softnet") is disabled by default as it requires
|
||||
# passwordless-sudo when installed through nix. Alternatively users may install
|
||||
# softnet through other means with "setuid"-bit enabled.
|
||||
# See https://github.com/cirruslabs/softnet#installing
|
||||
, enableSoftnet ? false, softnet
|
||||
}:
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "tart";
|
||||
version = "1.6.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/cirruslabs/tart/releases/download/${finalAttrs.version}/tart.tar.gz";
|
||||
sha256 = "1n052nwsccc3sr0jqnvhyl0six8wi46vysxjchwrdm8brnsdpf84";
|
||||
};
|
||||
sourceRoot = ".";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
# ./tart.app/Contents/MacOS/tart binary is required to be used in order to
|
||||
# trick macOS to pick tart.app/Contents/embedded.provision profile for elevated
|
||||
# privileges that Tart needs
|
||||
mkdir -p $out/bin $out/Applications
|
||||
cp -r tart.app $out/Applications/tart.app
|
||||
makeWrapper $out/Applications/tart.app/Contents/MacOS/tart $out/bin/tart \
|
||||
--prefix PATH : ${lib.makeBinPath (lib.optional enableSoftnet softnet)}
|
||||
install -Dm444 LICENSE $out/share/tart/LICENSE
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "macOS VMs on Apple Silicon to use in CI and other automations";
|
||||
homepage = "https://tart.run";
|
||||
license = licenses.fairsource09;
|
||||
maintainers = with maintainers; [ emilytrau Enzime ];
|
||||
platforms = [ "aarch64-darwin" ];
|
||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||
};
|
||||
})
|
|
@ -34328,6 +34328,8 @@ with pkgs;
|
|||
|
||||
sway-launcher-desktop = callPackage ../applications/misc/sway-launcher-desktop { };
|
||||
|
||||
tart = callPackage ../applications/virtualization/tart { };
|
||||
|
||||
tecoc = callPackage ../applications/editors/tecoc { };
|
||||
|
||||
viber = callPackage ../applications/networking/instant-messengers/viber { };
|
||||
|
|
Loading…
Reference in a new issue