docspell/project/build.nix

23 lines
624 B
Nix
Raw Normal View History

let
2021-05-30 07:58:44 +00:00
nixpkgs = builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/nixos-20.09.tar.gz";
2020-07-30 18:31:53 +00:00
};
2021-05-30 07:58:44 +00:00
pkgs = import nixpkgs { };
initScript = pkgs.writeScript "docspell-build-init" ''
export LD_LIBRARY_PATH=
2021-05-30 07:58:44 +00:00
${pkgs.bash}/bin/bash -c "sbt -mem 2048 -java-home ${pkgs.openjdk11}/lib/openjdk"
'';
2021-05-30 07:58:44 +00:00
in with pkgs;
2020-07-30 18:31:53 +00:00
buildFHSUserEnv {
name = "docspell-sbt";
targetPkgs = pkgs: with pkgs; [
2020-07-30 18:31:53 +00:00
netcat jdk8 wget which zsh dpkg sbt git elmPackages.elm ncurses fakeroot mc
2020-07-27 20:13:22 +00:00
zola yarn
# haskells http client needs this (to download elm packages)
iana-etc
];
runScript = initScript;
}