depot/third_party/nixpkgs/pkgs/development/tools/build-managers/moon/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

45 lines
1 KiB
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, darwin
, stdenv
, openssl
, pkg-config
}:
rustPlatform.buildRustPackage rec {
pname = "moon";
version = "1.25.1";
src = fetchFromGitHub {
owner = "moonrepo";
repo = pname;
rev = "v${version}";
hash = "sha256-LPQuP2OsR1TYnt7Qm8XRO0Ne7xliglJgQrMHNWnsYhM=";
};
cargoHash = "sha256-EWwUlKxsf0rZegxk1m11ZPIcfjwZKQ7C95l5UyGVFD0=";
env = {
RUSTFLAGS = "-C strip=symbols";
OPENSSL_NO_VENDOR = 1;
};
buildInputs = [ openssl ] ++
lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
];
nativeBuildInputs = [ pkg-config ];
# Some tests fail, because test using internet connection and install NodeJS by example
doCheck = false;
meta = with lib; {
description = "A task runner and repo management tool for the web ecosystem, written in Rust";
mainProgram = "moon";
homepage = "https://github.com/moonrepo/moon";
license = licenses.mit;
maintainers = with maintainers; [ flemzord ];
};
}