2019-07-22 22:53:30 +00:00
|
|
|
let
|
2021-05-30 07:58:44 +00:00
|
|
|
nixpkgs = builtins.fetchTarball {
|
2022-05-21 21:33:22 +00:00
|
|
|
#url = "https://github.com/NixOS/nixpkgs/archive/92e990a8d6bc35f1089c76dd8ba68b78da90da59.tar.gz";
|
2023-11-05 22:11:22 +00:00
|
|
|
url = "channel:nixos-23.05";
|
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" ''
|
2019-07-22 22:53:30 +00:00
|
|
|
export LD_LIBRARY_PATH=
|
2023-11-05 22:11:22 +00:00
|
|
|
${pkgs.bash}/bin/bash -c "sbt -mem 4096 -java-home ${pkgs.openjdk17}/lib/openjdk"
|
2019-07-22 22:53:30 +00:00
|
|
|
'';
|
2021-05-30 07:58:44 +00:00
|
|
|
in with pkgs;
|
2020-07-30 18:31:53 +00:00
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
buildFHSUserEnv {
|
|
|
|
name = "docspell-sbt";
|
|
|
|
targetPkgs = pkgs: with pkgs; [
|
2023-11-05 22:11:22 +00:00
|
|
|
netcat jdk17 wget which dpkg sbt git elmPackages.elm ncurses fakeroot mc
|
2020-07-27 20:13:22 +00:00
|
|
|
zola yarn
|
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
# haskells http client needs this (to download elm packages)
|
|
|
|
iana-etc
|
|
|
|
];
|
|
|
|
runScript = initScript;
|
|
|
|
}
|