forked from mirrors/nixpkgs
Merge pull request #190165 from figsoda/cargo-zigbuild
cargo-zigbuild: init at 0.12.0
This commit is contained in:
commit
7abd503e3f
29
pkgs/development/tools/rust/cargo-zigbuild/default.nix
Normal file
29
pkgs/development/tools/rust/cargo-zigbuild/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ lib, rustPlatform, fetchFromGitHub, makeWrapper, zig }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "cargo-zigbuild";
|
||||
version = "0.12.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "messense";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-nBncU5rM3gS5e/Qs14U/ZwAkLFLdNuO2DhSQW+7xGQk=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-Zq+RG36aeNd8G+LSdiyLK8SYC0MckGUIBTvia4H9OJY=";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/cargo-zigbuild \
|
||||
--prefix PATH : ${zig}/bin
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tool to compile Cargo projects with zig as the linker";
|
||||
homepage = "https://github.com/messense/cargo-zigbuild";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ figsoda ];
|
||||
};
|
||||
}
|
|
@ -14591,6 +14591,8 @@ with pkgs;
|
|||
|
||||
cargo-public-api = callPackage ../development/tools/rust/cargo-public-api { };
|
||||
|
||||
cargo-zigbuild = callPackage ../development/tools/rust/cargo-zigbuild { };
|
||||
|
||||
crate2nix = callPackage ../development/tools/rust/crate2nix { };
|
||||
|
||||
convco = callPackage ../development/tools/convco {
|
||||
|
|
Loading…
Reference in a new issue