Merge pull request #262792 from shivaraj-bh/cargo-xwin

cargo-xwin: init at 0.14.8

authored by Weijia Wang and committed by GitHub 19e7d302 bf8e5e03

+37
+6
maintainers/maintainer-list.nix
··· 16112 16112 fingerprint = "AB63 4CD9 3322 BD42 6231 F764 C404 1EA6 B326 33DE"; 16113 16113 }]; 16114 16114 }; 16115 + shivaraj-bh = { 16116 + email = "sbh69840@gmail.com"; 16117 + name = "Shivaraj B H"; 16118 + github = "shivaraj-bh"; 16119 + githubId = 23645788; 16120 + }; 16115 16121 shlevy = { 16116 16122 email = "shea@shealevy.com"; 16117 16123 github = "shlevy";
+31
pkgs/by-name/ca/cargo-xwin/package.nix
··· 1 + { lib 2 + , stdenv 3 + , rustPlatform 4 + , fetchFromGitHub 5 + , darwin 6 + }: 7 + 8 + rustPlatform.buildRustPackage rec { 9 + pname = "cargo-xwin"; 10 + version = "0.14.8"; 11 + 12 + src = fetchFromGitHub { 13 + owner = "rust-cross"; 14 + repo = "cargo-xwin"; 15 + rev = "v${version}"; 16 + hash = "sha256-VhpqmGhGBqB20ZteIwbd0GCIUltBGfBw7XF9lH7witA="; 17 + }; 18 + 19 + cargoHash = "sha256-e5QyaiQKlIzBwJE781BrhdVINacw0iniPywIsoMlCGg="; 20 + 21 + buildInputs = lib.optionals stdenv.isDarwin [ 22 + darwin.apple_sdk.frameworks.Security 23 + ]; 24 + 25 + meta = with lib; { 26 + description = "Cross compile Cargo project to Windows MSVC target with ease"; 27 + homepage = "https://github.com/rust-cross/cargo-xwin"; 28 + license = with licenses; [ mit ]; 29 + maintainers = with maintainers; [ shivaraj-bh ]; 30 + }; 31 + }