about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-08-11 09:42:08 -0400
committerfigsoda <figsoda@pm.me>2023-08-11 10:04:06 -0400
commit7dd9d890326a90269e0d78f68e59fd8c227890fe (patch)
tree083c76a0febe8040da6b23c7f98aae8f85c04f20 /pkgs/development
parent954b6397ae336ba8403f790bc4cd6d8d6916f34d (diff)
cargo-dist: 0.0.7 -> 0.1.0
Diff: https://github.com/axodotdev/cargo-dist/compare/v0.0.7...v0.1.0

Changelog: https://github.com/axodotdev/cargo-dist/blob/v0.1.0/CHANGELOG.md
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/tools/rust/cargo-dist/default.nix23
1 files changed, 17 insertions, 6 deletions
diff --git a/pkgs/development/tools/rust/cargo-dist/default.nix b/pkgs/development/tools/rust/cargo-dist/default.nix
index 50e9f240ba1d9..12798f9973470 100644
--- a/pkgs/development/tools/rust/cargo-dist/default.nix
+++ b/pkgs/development/tools/rust/cargo-dist/default.nix
@@ -6,21 +6,23 @@
 , xz
 , zstd
 , stdenv
+, darwin
+, git
 , rustup
 }:
 
 rustPlatform.buildRustPackage rec {
   pname = "cargo-dist";
-  version = "0.0.7";
+  version = "0.1.0";
 
   src = fetchFromGitHub {
     owner = "axodotdev";
     repo = "cargo-dist";
     rev = "v${version}";
-    hash = "sha256-uXC+iaOcEIyGMVNtAduhT68GuE29aL/3S6uEMllAWNA=";
+    hash = "sha256-yuBf6WgY+sGk7Y5/gZFHeawbHhsVIxabFlpiL4AUzK8=";
   };
 
-  cargoHash = "sha256-/TLi+ESOZhJ4Xg3hdUEWhM0K4asI9+L1M1+hWuDOj9Q=";
+  cargoHash = "sha256-vfpSMa3NO95SPU4jSW1qKMUy4EGZloYNC3SyGwlTGC0=";
 
   nativeBuildInputs = [
     pkg-config
@@ -30,15 +32,24 @@ rustPlatform.buildRustPackage rec {
     bzip2
     xz
     zstd
+  ] ++ lib.optionals stdenv.isDarwin [
+    darwin.apple_sdk.frameworks.Security
+  ];
+
+  nativeCheckInputs = [
+    git
+  ] ++ lib.optionals stdenv.isDarwin [
+    rustup
   ];
 
   env = {
     ZSTD_SYS_USE_PKG_CONFIG = true;
   };
 
-  nativeCheckInputs = lib.optionals stdenv.isDarwin [
-    rustup
-  ];
+  # remove tests that require internet access
+  postPatch = ''
+    rm cargo-dist/tests/integration-tests.rs
+  '';
 
   meta = with lib; {
     description = "A tool for building final distributable artifacts and uploading them to an archive";