mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-02 12:05:28 +03:00
Build with nix on OSX and Linux
This commit is contained in:
parent
3c79a24554
commit
068bf90e01
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
git submodule init
|
||||
git submodule update
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
mkdir ./build &> /dev/null
|
||||
meson . ./build --buildtype=release
|
||||
|
3
scripts/nixbuild
Executable file
3
scripts/nixbuild
Executable file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
nix-shell --pure --run ./scripts/build
|
16
shell.nix
Normal file
16
shell.nix
Normal file
@ -0,0 +1,16 @@
|
||||
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 ];
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
name = "urbit";
|
||||
buildInputs = osxdeps ++ deps;
|
||||
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework CoreServices";
|
||||
}
|
Loading…
Reference in New Issue
Block a user