Skip to content

Instantly share code, notes, and snippets.

@horothesun
Last active August 26, 2024 14:32
Show Gist options
  • Select an option

  • Save horothesun/87358a694f01e864d833ed993b7823c2 to your computer and use it in GitHub Desktop.

Select an option

Save horothesun/87358a694f01e864d833ed993b7823c2 to your computer and use it in GitHub Desktop.
Scala Native Nix Flake
# 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