2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, darwin
|
|
|
|
, stdenv
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "moon";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.18.5";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "moonrepo";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-NZiFxcEdNdqR38VDJe4lC5maLTguk3+t78yG1zqXuA0=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
cargoHash = "sha256-BecaYeQYYoP7SubTktYqOejFyCTRolmUTV7rpGwXOGI=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|