ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / ca / cargo-make / package.nix
blobad3a30c98d8f8778679f7aa1e62d633bb3e85587
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , pkg-config
5 , installShellFiles
6 , bzip2
7 , openssl
8 , stdenv
9 , darwin
12 rustPlatform.buildRustPackage rec {
13   pname = "cargo-make";
14   version = "0.37.23";
16   src = fetchFromGitHub {
17     owner = "sagiegurari";
18     repo = "cargo-make";
19     rev = version;
20     hash = "sha256-yYZasrnfxpLf0z6GndLYhkIFfVNjTkx4zdfHYX6WyXk=";
21   };
23   cargoHash = "sha256-X4FhUqhf58wbl3A8nlXAqnYkkaXajxxqRyJn5K7BVqM=";
25   nativeBuildInputs = [
26     pkg-config
27     installShellFiles
28   ];
30   buildInputs = [
31     bzip2
32     openssl
33   ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
34     darwin.apple_sdk.frameworks.SystemConfiguration
35   ];
37   postInstall = ''
38     installShellCompletion extra/shell/*.bash
39   '';
41   # Some tests fail because they need network access.
42   # However, Travis ensures a proper build.
43   # See also:
44   #   https://travis-ci.org/sagiegurari/cargo-make
45   doCheck = false;
47   meta = with lib; {
48     description = "Rust task runner and build tool";
49     homepage = "https://github.com/sagiegurari/cargo-make";
50     changelog = "https://github.com/sagiegurari/cargo-make/blob/${version}/CHANGELOG.md";
51     license = licenses.asl20;
52     maintainers = with maintainers; [ figsoda xrelkd ];
53     mainProgram = "cargo-make";
54   };