504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
44 lines
1 KiB
Nix
44 lines
1 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, darwin
|
|
, stdenv
|
|
, openssl
|
|
, pkg-config
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "moon";
|
|
version = "1.18.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "moonrepo";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-NZiFxcEdNdqR38VDJe4lC5maLTguk3+t78yG1zqXuA0=";
|
|
};
|
|
|
|
cargoHash = "sha256-BecaYeQYYoP7SubTktYqOejFyCTRolmUTV7rpGwXOGI=";
|
|
|
|
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";
|
|
homepage = "https://github.com/moonrepo/moon";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ flemzord ];
|
|
};
|
|
}
|