Last active
August 26, 2024 14:32
-
-
Save horothesun/87358a694f01e864d833ed993b7823c2 to your computer and use it in GitHub Desktop.
Scala Native Nix Flake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Usage: nix-shell path/to/scala-native.nix | |
| let | |
| pkgs = import <nixpkgs> {}; | |
| pkgs-unstable = import <nixpkgs-unstable> {}; | |
| stdenv = pkgs.stdenv; | |
| in rec { | |
| clangEnv = stdenv.mkDerivation rec { | |
| name = "clang-env"; | |
| shellHook = '' | |
| alias cls=clear | |
| ''; | |
| LLVM_BIN = pkgs.clang + "/bin"; | |
| buildInputs = with pkgs; [ | |
| stdenv | |
| sbt | |
| openjdk | |
| boehmgc | |
| libunwind | |
| clang | |
| zlib | |
| pkgs-unstable.scala-cli | |
| ]; | |
| }; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment