nixpkgs/pkgs/by-name/ca/cargo-xwin/package.nix

33 lines
775 B
Nix
Raw Normal View History

2023-10-22 19:05:58 +00:00
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-xwin";
2024-07-08 11:37:14 +00:00
version = "0.17.2";
2023-10-22 19:05:58 +00:00
src = fetchFromGitHub {
owner = "rust-cross";
repo = "cargo-xwin";
rev = "v${version}";
2024-07-08 11:37:14 +00:00
hash = "sha256-lz1IykhdJy3540g6A5EpxGM2czM5psi/zZdKkgJd7BA=";
2023-10-22 19:05:58 +00:00
};
2024-07-08 11:37:14 +00:00
cargoHash = "sha256-qKLHrHQhjWysvOwVvlCjaQOoidUz42wEyJPyo/nz5Ro=";
2023-10-22 19:05:58 +00:00
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
meta = with lib; {
description = "Cross compile Cargo project to Windows MSVC target with ease";
mainProgram = "cargo-xwin";
2023-10-22 19:05:58 +00:00
homepage = "https://github.com/rust-cross/cargo-xwin";
license = with licenses; [ mit ];
maintainers = with maintainers; [ shivaraj-bh ];
};
}