about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/package-management/cargo-update/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/package-management/cargo-update/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/package-management/cargo-update/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/package-management/cargo-update/default.nix b/nixpkgs/pkgs/tools/package-management/cargo-update/default.nix
new file mode 100644
index 000000000000..50dc748e07ef
--- /dev/null
+++ b/nixpkgs/pkgs/tools/package-management/cargo-update/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, callPackage, defaultCrateOverrides, fetchFromGitHub, cmake, curl, libssh2, libgit2, openssl, zlib }:
+
+((callPackage ./cargo-update.nix {}).cargo_update {}).override {
+  crateOverrides = defaultCrateOverrides // {
+    cargo-update = attrs: rec {
+      name = "cargo-update-${version}";
+      version = "1.5.2";
+
+      src = fetchFromGitHub {
+        owner = "nabijaczleweli";
+        repo = "cargo-update";
+        rev = "v${version}";
+        sha256 = "1bvrdgcw2akzd78wgvsisvghi8pvdk3szyg9s46qxv4km9sf88s7";
+      };
+
+      nativeBuildInputs = [ cmake ];
+      buildInputs = [ libssh2 libgit2 openssl zlib ]
+        ++ stdenv.lib.optional stdenv.isDarwin curl;
+
+      meta = with stdenv.lib; {
+        description = "A cargo subcommand for checking and applying updates to installed executables";
+        homepage = https://github.com/nabijaczleweli/cargo-update;
+        license = with licenses; [ mit ];
+        maintainers = with maintainers; [ gerschtli ];
+        platforms = platforms.all;
+      };
+    };
+  };
+}