push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
{
lib,
apple-sdk_15,
buildGoModule,
darwin,
fetchFromGitHub,
fetchpatch2,
nix-update-script,
testers,
vfkit,
}:
buildGoModule rec {
pname = "vfkit";
version = "0.6.1";
src = fetchFromGitHub {
owner = "crc-org";
repo = "vfkit";
rev = "v${version}";
hash = "sha256-+ds9GIa3q2ck4D3sjUHz7e9w00XgD6/jq4L8QkBpCJg=";
};
vendorHash = "sha256-YvrcEPyAvuECUVgQoHKveMoFOeh4M3k5ngsP2w46+vY=";
subPackages = [ "cmd/vfkit" ];
ldflags = [
"-s"
"-w"
"-X github.com/crc-org/vfkit/pkg/cmdline.gitVersion=${src.rev}"
];
nativeBuildInputs = [
darwin.sigtool
];
buildInputs = [
apple-sdk_15
];
postFixup = ''
codesign --entitlements vf.entitlements -f -s - $out/bin/vfkit
'';
passthru.tests = {
version = testers.testVersion { package = vfkit; };
};
passthru.updateScript = nix-update-script { };
meta = {
description = "Simple command line tool to start VMs through the macOS Virtualization framework";
homepage = "https://github.com/crc-org/vfkit";
changelog = "https://github.com/crc-org/vfkit/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
sarcasticadmin
phaer
];
platforms = lib.platforms.darwin;
sourceProvenance = [ lib.sourceTypes.fromSource ];
mainProgram = "vfkit";
};
}

View File

@@ -0,0 +1,51 @@
{
lib,
buildGoModule,
fetchFromGitHub,
writableTmpDirAsHomeHook,
nix-update-script,
}:
buildGoModule (finalAttrs: {
pname = "vfox";
version = "0.8.0";
src = fetchFromGitHub {
owner = "version-fox";
repo = "vfox";
tag = "v${finalAttrs.version}";
hash = "sha256-d6rxk2gdS5oo/71Z53o2eJw/NhApqyqzgMa/sMKLY7s=";
};
vendorHash = "sha256-TmWhzjjv+DkFHV4kEKpVYgQpI0Vl4aYvKR9QVpawrYA=";
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [ writableTmpDirAsHomeHook ];
checkFlags =
let
skippedTests = [
# need network
"TestGetRequest"
"TestHeadRequest"
"TestDownloadFile"
];
in
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
preCheck = ''
export CI=1
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Extendable version manager";
homepage = "https://github.com/version-fox/vfox";
changelog = "https://github.com/version-fox/vfox/releases/tag/v${finalAttrs.version}";
mainProgram = "vfox";
license = lib.licenses.asl20;
maintainers = [ ];
};
})