mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
46 lines
1.0 KiB
Nix
46 lines
1.0 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, darwin
|
|
, stdenv
|
|
, openssl
|
|
, pkg-config
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "moon";
|
|
version = "1.24.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "moonrepo";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-G1SblnbT0goOsefEy1QbCkp32JKs0usfKMWDsn3k7/M=";
|
|
};
|
|
|
|
cargoHash = "sha256-z2Kgo8i6fk3sfX6bCBmyqIfFSw75v4NhnUFSBKJQwXs=";
|
|
|
|
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 ];
|
|
};
|
|
}
|