about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIlan Joselevich <personal@ilanjoselevich.com>2024-03-11 16:53:09 +0200
committerIlan Joselevich <personal@ilanjoselevich.com>2024-03-11 17:38:59 +0200
commiteb42021189af363c19f2eda48a4d71bc5eadea94 (patch)
tree7c68ff2944308cd18e19588b2b3a3bd39c24da7b
parenta2c0efbf5e28fd58a0b2cda8da371817ac7e1a61 (diff)
downloadnixlib-eb42021189af363c19f2eda48a4d71bc5eadea94.tar
nixlib-eb42021189af363c19f2eda48a4d71bc5eadea94.tar.gz
nixlib-eb42021189af363c19f2eda48a4d71bc5eadea94.tar.bz2
nixlib-eb42021189af363c19f2eda48a4d71bc5eadea94.tar.lz
nixlib-eb42021189af363c19f2eda48a4d71bc5eadea94.tar.xz
nixlib-eb42021189af363c19f2eda48a4d71bc5eadea94.tar.zst
nixlib-eb42021189af363c19f2eda48a4d71bc5eadea94.zip
cargo-wizard: init at 0.2.1
https://github.com/kobzol/cargo-wizard
-rw-r--r--pkgs/by-name/ca/cargo-wizard/package.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/by-name/ca/cargo-wizard/package.nix b/pkgs/by-name/ca/cargo-wizard/package.nix
new file mode 100644
index 000000000000..20bc22033964
--- /dev/null
+++ b/pkgs/by-name/ca/cargo-wizard/package.nix
@@ -0,0 +1,32 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, stdenv
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "cargo-wizard";
+  version = "0.2.1";
+
+  src = fetchFromGitHub {
+    owner = "kobzol";
+    repo = "cargo-wizard";
+    rev = "v${version}";
+    hash = "sha256-b8PFJphnTTzW0+f6p59CvQeZMnK6Szp0l/666guDbuc=";
+  };
+
+  cargoHash = "sha256-qBqFnvmGKZQv0vWigsUKELDNqy245GqBm3Nif2hAa78=";
+
+  preCheck = ''
+    export PATH=$PATH:$PWD/target/${stdenv.hostPlatform.rust.rustcTarget}/$cargoBuildType
+  '';
+
+  meta = with lib; {
+    description = "Cargo subcommand for configuring Cargo profile for best performance";
+    homepage = "https://github.com/kobzol/cargo-wizard";
+    changelog = "https://github.com/kobzol/cargo-wizard/blob/${src.rev}/CHANGELOG.md";
+    license = licenses.mit;
+    maintainers = with maintainers; [ kranzes ];
+    mainProgram = "cargo-wizard";
+  };
+}