nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "cargo-xwin";
9 version = "0.19.1";
10
11 src = fetchFromGitHub {
12 owner = "rust-cross";
13 repo = "cargo-xwin";
14 rev = "v${version}";
15 hash = "sha256-rmbu3WNwCmgojAWAthIQ9/XiSS04d9DoZwGRGAuRfDw=";
16 };
17
18 cargoHash = "sha256-7xpkxJh5KVJVw6wQZGr2daU1qg0e969EWflf4Z/01oY=";
19
20 meta = with lib; {
21 description = "Cross compile Cargo project to Windows MSVC target with ease";
22 mainProgram = "cargo-xwin";
23 homepage = "https://github.com/rust-cross/cargo-xwin";
24 license = with licenses; [ mit ];
25 maintainers = with maintainers; [ shivaraj-bh ];
26 };
27}