cocogitto: use new Darwin SDK pattern

This commit is contained in:
Theodore Ni 2024-11-09 21:49:09 -08:00
parent f2ffd24d2a
commit 8079fe3967
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474
2 changed files with 4 additions and 6 deletions

View File

@ -1,4 +1,4 @@
{ lib, rustPlatform, fetchFromGitHub, installShellFiles, stdenv, Security, libgit2 }: { lib, rustPlatform, fetchFromGitHub, installShellFiles, stdenv, libgit2 }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "cocogitto"; pname = "cocogitto";
@ -8,7 +8,7 @@ rustPlatform.buildRustPackage rec {
owner = "oknozor"; owner = "oknozor";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-yGwGWXME9ZjFJk/3pVDRTa1phG6kd8+YhXe/MxOEdF0="; hash = "sha256-yGwGWXME9ZjFJk/3pVDRTa1phG6kd8+YhXe/MxOEdF0=";
}; };
cargoHash = "sha256-iS/nRfy63bgo7MeL/5jJ3Vn6S7dG49erIZ+0516YxKM="; cargoHash = "sha256-iS/nRfy63bgo7MeL/5jJ3Vn6S7dG49erIZ+0516YxKM=";
@ -19,7 +19,7 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
buildInputs = [ libgit2 ] ++ lib.optional stdenv.hostPlatform.isDarwin Security; buildInputs = [ libgit2 ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd cog \ installShellCompletion --cmd cog \

View File

@ -299,9 +299,7 @@ with pkgs;
perlPackages = perl538Packages; perlPackages = perl538Packages;
}; };
cocogitto = callPackage ../development/tools/cocogitto { cocogitto = callPackage ../development/tools/cocogitto { };
inherit (darwin.apple_sdk.frameworks) Security;
};
coldsnap = callPackage ../tools/admin/coldsnap { coldsnap = callPackage ../tools/admin/coldsnap {
inherit (darwin.apple_sdk.frameworks) Security; inherit (darwin.apple_sdk.frameworks) Security;