gfold: use new Darwin SDK pattern

This commit is contained in:
Theodore Ni 2024-11-10 23:18:38 -08:00
parent 9a78e67344
commit 487201b5fc
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474
2 changed files with 2 additions and 12 deletions

View File

@ -2,10 +2,7 @@
fetchFromGitHub,
gfold,
lib,
libiconv,
rustPlatform,
Security,
stdenv,
testers,
}:
@ -20,16 +17,11 @@ rustPlatform.buildRustPackage {
owner = "nickgerace";
repo = pname;
rev = version;
sha256 = "sha256-7wTU+yVp/GO1H1MbgZKO0OwqSC2jbHO0lU8aa0tHLTY=";
hash = "sha256-7wTU+yVp/GO1H1MbgZKO0OwqSC2jbHO0lU8aa0tHLTY=";
};
cargoHash = "sha256-idzw5dfCCvujvYr7DG0oOzQUIcbACtiIZLoA4MEClzY=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
libiconv
Security
];
passthru.tests.version = testers.testVersion {
package = gfold;
command = "gfold --version";

View File

@ -1199,9 +1199,7 @@ with pkgs;
forgejo-lts = callPackage ../by-name/fo/forgejo/lts.nix { };
gfold = callPackage ../applications/version-management/gfold {
inherit (darwin.apple_sdk.frameworks) Security;
};
gfold = callPackage ../applications/version-management/gfold { };
gita = python3Packages.callPackage ../applications/version-management/gita { };