cgtcalc: 0-unstable-2025-10-11 -> 0.2.0-unstable-2026-08-07

with swift 6 merged we can finally update this

https://github.com/NixOS/nixpkgs/pull/557896

use the new swiftpm machinery:
https://github.com/NixOS/nixpkgs/blob/staging-next/doc/languages-frameworks/swift.section.md#packaging-with-swiftpm-ssec-swift-packaging-with-swiftpm
This commit is contained in:
Daniel Woffinden
2026-09-16 22:16:08 +01:00
parent 29dea26ec5
commit c84040edcc
3 changed files with 8 additions and 42 deletions

View File

@@ -1,7 +0,0 @@
# This file was generated by swiftpm2nix.
{
workspaceStateFile = ./workspace-state.json;
hashes = {
"swift-argument-parser" = "sha256-lWQ9mzfRxHcy00Cqyrsm9rOlQzkpU1lNBmiK7MMp6dU=";
};
}

View File

@@ -1,25 +0,0 @@
{
"object": {
"artifacts": [],
"dependencies": [
{
"basedOn": null,
"packageRef": {
"identity": "swift-argument-parser",
"kind": "remoteSourceControl",
"location": "https://github.com/apple/swift-argument-parser",
"name": "swift-argument-parser"
},
"state": {
"checkoutState": {
"revision": "f3c9084a71ef4376f2fabbdf1d3d90a49f1fabdb",
"version": "1.1.2"
},
"name": "sourceControlCheckout"
},
"subpath": "swift-argument-parser"
}
]
},
"version": 6
}

View File

@@ -5,29 +5,27 @@
stdenv,
swift,
swiftpm,
swiftpm2nix,
fetchSwiftPMDeps,
}:
let
generated = swiftpm2nix.helpers ./generated;
in
stdenv.mkDerivation (finalAttrs: {
pname = "cgtcalc";
version = "0-unstable-2025-10-11";
version = "0.2.0-unstable-2026-08-07";
src = fetchFromGitHub {
owner = "mattjgalloway";
repo = "cgtcalc";
# Repo has no tags or releases.
# This is the last commit before requiring Swift 6
rev = "1cf63741ddc0a5070680cb1339ad0abff0b7d69b";
hash = "sha256-+qgvl5y9ipVQIZlLZbkzkqb9bO7X9VGDvVsloOLZU/k=";
rev = "29adf5bf39f870d4098bc828f356864190e41969";
hash = "sha256-koyvaeJSbhql7ERuJY6EBRTtT3MCYS6Sp+XANJmvMms=";
};
nativeBuildInputs = [
swift
swiftpm
];
configurePhase = generated.configure;
swiftpmDeps = fetchSwiftPMDeps {
inherit (finalAttrs) src;
hash = "sha256-FBoYVbVMdSZ2q89h7Mcn6vlPNScTJqzoSJKS6wgUGwY=";
};
installPhase = ''
runHook preInstall