nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 44 lines 1.0 kB view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, darwin 5, stdenv 6, openssl 7, pkg-config 8}: 9 10rustPlatform.buildRustPackage rec { 11 pname = "moon"; 12 version = "v1.5.1"; 13 14 src = fetchFromGitHub { 15 owner = "moonrepo"; 16 repo = pname; 17 rev = version; 18 hash = "sha256-TA27e0W0XSOC326lnO/mSlJNLGn6roJhd1CrQadWb/U="; 19 }; 20 21 cargoHash = "sha256-Q044nxI6VGGal9I31VuZeGLho4KIz/Rzg4Lrn1prj4Y="; 22 23 env = { 24 RUSTFLAGS = "-C strip=symbols"; 25 OPENSSL_NO_VENDOR = 1; 26 }; 27 28 buildInputs = [ openssl ] ++ 29 lib.optionals stdenv.isDarwin [ 30 darwin.apple_sdk.frameworks.Security 31 darwin.apple_sdk.frameworks.SystemConfiguration 32 ]; 33 nativeBuildInputs = [ pkg-config ]; 34 35 # Some tests fail, because test using internet connection and install NodeJS by example 36 doCheck = false; 37 38 meta = with lib; { 39 description = "A task runner and repo management tool for the web ecosystem, written in Rust"; 40 homepage = "https://github.com/moonrepo/moon"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ flemzord ]; 43 }; 44}