mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
4648012ed8
Diff: https://github.com/messense/cargo-zigbuild/compare/v0.15.0...v0.16.0 Changelog: https://github.com/messense/cargo-zigbuild/releases/tag/v0.16.0
31 lines
856 B
Nix
31 lines
856 B
Nix
{ lib, rustPlatform, fetchFromGitHub, makeWrapper, zig }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-zigbuild";
|
|
version = "0.16.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "messense";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-ITevZv/4Q21y3o9N4WSqD2vONQfNEXKHE/Af/f6T8vw=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-e5MIaX4R/z41x11SyZaiOERokCllC10J+rLra2I1N9c=";
|
|
|
|
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";
|
|
changelog = "https://github.com/messense/cargo-zigbuild/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
};
|
|
}
|