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

View File

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