Update project/build.nix

This commit is contained in:
Eike Kettner 2021-05-30 09:58:44 +02:00
parent 1fe7b05026
commit 463c9c2a8b

View File

@ -1,13 +1,13 @@
let let
nixpkgsUnstable = builtins.fetchTarball { nixpkgs = builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz"; url = "https://github.com/NixOS/nixpkgs/archive/nixos-20.09.tar.gz";
}; };
pkgsUnstable = import nixpkgsUnstable { }; pkgs = import nixpkgs { };
initScript = pkgsUnstable.writeScript "docspell-build-init" '' initScript = pkgs.writeScript "docspell-build-init" ''
export LD_LIBRARY_PATH= export LD_LIBRARY_PATH=
${pkgsUnstable.bash}/bin/bash -c sbt ${pkgs.bash}/bin/bash -c "sbt -mem 2048 -java-home ${pkgs.openjdk11}/lib/openjdk"
''; '';
in with pkgsUnstable; in with pkgs;
buildFHSUserEnv { buildFHSUserEnv {
name = "docspell-sbt"; name = "docspell-sbt";