Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / by-name / ca / cargo-xwin / package.nix
blob0b759f520975c197c5605643c13e60084042c28d
1 { lib
2 , stdenv
3 , rustPlatform
4 , fetchFromGitHub
5 , darwin
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "cargo-xwin";
10   version = "0.14.9";
12   src = fetchFromGitHub {
13     owner = "rust-cross";
14     repo = "cargo-xwin";
15     rev = "v${version}";
16     hash = "sha256-y2hlzewDWYxkKhr77JB3lkYo5hexcdmPiCRbXLtnolM=";
17   };
19   cargoHash = "sha256-uIFjWgoNCU5kUX4i1Law/YE0TmFLOi6V3Y4b9BpQlI4=";
21   buildInputs = lib.optionals stdenv.isDarwin [
22     darwin.apple_sdk.frameworks.Security
23   ];
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   };