mirror of
https://github.com/urbit/shrub.git
synced 2024-12-22 18:31:44 +03:00
17 lines
396 B
Nix
17 lines
396 B
Nix
with (import ./nixpkgs {});
|
|
|
|
let
|
|
|
|
osxdeps = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
|
Cocoa
|
|
CoreServices
|
|
]);
|
|
|
|
deps = [ cmark curl gcc gmp libsigsegv meson ncurses ninja pkgconfig zlib re2c openssl ];
|
|
|
|
in stdenv.mkDerivation {
|
|
name = "urbit";
|
|
buildInputs = osxdeps ++ deps;
|
|
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework CoreServices";
|
|
}
|