evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ca / cargo-xwin / package.nix
blob4f3b16c4ddee046a34814a72ef494e16a0c06621
1 { lib
2 , stdenv
3 , rustPlatform
4 , fetchFromGitHub
5 , darwin
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "cargo-xwin";
10   version = "0.17.3";
12   src = fetchFromGitHub {
13     owner = "rust-cross";
14     repo = "cargo-xwin";
15     rev = "v${version}";
16     hash = "sha256-Lpcofb4yz1pR6dNJEnpkkCFdYjgt0qMzVP55kgKqjFA=";
17   };
19   cargoHash = "sha256-xVG1nET020rfMIjhIcCtNr9ZCj8SgQAvXePjyKSPjUs=";
21   buildInputs = lib.optionals stdenv.hostPlatform.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     mainProgram = "cargo-xwin";
28     homepage = "https://github.com/rust-cross/cargo-xwin";
29     license = with licenses; [ mit ];
30     maintainers = with maintainers; [ shivaraj-bh ];
31   };