mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-09 02:54:49 +00:00
Add Nix package to new Zig compiler
This commit is contained in:
parent
54ffb15918
commit
b3739b8a4f
1 changed files with 24 additions and 0 deletions
|
|
@ -50,6 +50,30 @@
|
|||
'';
|
||||
|
||||
in {
|
||||
packages = {
|
||||
default = self.packages.${system}.roc;
|
||||
roc = pkgs.stdenv.mkDerivation {
|
||||
name = "roc";
|
||||
src = ../.;
|
||||
nativeBuildInputs = [ zig.hook pkgs.pkg-config ];
|
||||
zigBuildFlags = [ "-Doptimize=ReleaseFast" ];
|
||||
|
||||
# NIX_CFLAGS_COMPILE="";
|
||||
# NIX_LDFLAGS="";
|
||||
};
|
||||
};
|
||||
|
||||
apps = {
|
||||
default = self.apps.${system}.roc;
|
||||
roc = {
|
||||
type = "app";
|
||||
program = "${self.packages.${system}.roc}/bin/roc";
|
||||
meta = {
|
||||
description = "Roc CLI";
|
||||
mainProgram = "roc";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
devShell = pkgs.mkShell {
|
||||
buildInputs = dependencies;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue