cocogitto: use new Darwin SDK pattern
This commit is contained in:
parent
f2ffd24d2a
commit
8079fe3967
@ -1,4 +1,4 @@
|
||||
{ lib, rustPlatform, fetchFromGitHub, installShellFiles, stdenv, Security, libgit2 }:
|
||||
{ lib, rustPlatform, fetchFromGitHub, installShellFiles, stdenv, libgit2 }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "cocogitto";
|
||||
@ -8,7 +8,7 @@ rustPlatform.buildRustPackage rec {
|
||||
owner = "oknozor";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-yGwGWXME9ZjFJk/3pVDRTa1phG6kd8+YhXe/MxOEdF0=";
|
||||
hash = "sha256-yGwGWXME9ZjFJk/3pVDRTa1phG6kd8+YhXe/MxOEdF0=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-iS/nRfy63bgo7MeL/5jJ3Vn6S7dG49erIZ+0516YxKM=";
|
||||
@ -19,7 +19,7 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
buildInputs = [ libgit2 ] ++ lib.optional stdenv.hostPlatform.isDarwin Security;
|
||||
buildInputs = [ libgit2 ];
|
||||
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd cog \
|
||||
|
@ -299,9 +299,7 @@ with pkgs;
|
||||
perlPackages = perl538Packages;
|
||||
};
|
||||
|
||||
cocogitto = callPackage ../development/tools/cocogitto {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
cocogitto = callPackage ../development/tools/cocogitto { };
|
||||
|
||||
coldsnap = callPackage ../tools/admin/coldsnap {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
|
Loading…
Reference in New Issue
Block a user