mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
commit
bf2dca1111
@ -650,6 +650,13 @@ in mkLicense lset) ({
|
||||
free = true;
|
||||
};
|
||||
|
||||
fairsource09 = {
|
||||
fullName = "Fair Source License, version 0.9";
|
||||
url = "https://fair.io/v0.9.txt";
|
||||
free = false;
|
||||
redistributable = true;
|
||||
};
|
||||
|
||||
issl = {
|
||||
fullName = "Intel Simplified Software License";
|
||||
url = "https://software.intel.com/en-us/license/intel-simplified-software-license";
|
||||
|
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 ];
|
||||
};
|
||||
})
|
34
pkgs/tools/networking/softnet/default.nix
Normal file
34
pkgs/tools/networking/softnet/default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ lib
|
||||
, stdenvNoCC
|
||||
, fetchurl
|
||||
}:
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "softnet";
|
||||
version = "0.7.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/cirruslabs/softnet/releases/download/${finalAttrs.version}/softnet.tar.gz";
|
||||
sha256 = "1g274x524xc85hfzxi3vb4xp720bjgk740bp6hc92d1ikmp0b664";
|
||||
};
|
||||
sourceRoot = ".";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -D softnet $out/bin/softnet
|
||||
install -Dm444 -t $out/share/softnet README.md LICENSE
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Software networking with isolation for Tart";
|
||||
homepage = "https://github.com/cirruslabs/softnet";
|
||||
license = licenses.agpl3Plus;
|
||||
maintainers = with maintainers; [ emilytrau ];
|
||||
platforms = [ "aarch64-darwin" ];
|
||||
# Source build will be possible after darwin SDK 12.0 bump
|
||||
# https://github.com/NixOS/nixpkgs/pull/229210
|
||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||
};
|
||||
})
|
@ -12848,6 +12848,8 @@ with pkgs;
|
||||
|
||||
sockperf = callPackage ../tools/networking/sockperf { };
|
||||
|
||||
softnet = callPackage ../tools/networking/softnet { };
|
||||
|
||||
solaar = callPackage ../applications/misc/solaar { };
|
||||
|
||||
solanum = callPackage ../servers/irc/solanum {
|
||||
@ -34623,6 +34625,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 New Issue
Block a user