2019-07-22 22:53:30 +00:00
|
|
|
let
|
2020-07-30 18:31:53 +00:00
|
|
|
nixpkgsUnstable = builtins.fetchTarball {
|
|
|
|
url = "https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz";
|
|
|
|
};
|
|
|
|
pkgsUnstable = import nixpkgsUnstable { };
|
|
|
|
initScript = pkgsUnstable.writeScript "docspell-build-init" ''
|
2019-07-22 22:53:30 +00:00
|
|
|
export LD_LIBRARY_PATH=
|
2020-07-30 18:31:53 +00:00
|
|
|
${pkgsUnstable.bash}/bin/bash -c sbt
|
2019-07-22 22:53:30 +00:00
|
|
|
'';
|
2020-07-30 18:31:53 +00:00
|
|
|
in with pkgsUnstable;
|
|
|
|
|
2019-07-22 22:53:30 +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
|
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
# haskells http client needs this (to download elm packages)
|
|
|
|
iana-etc
|
|
|
|
];
|
|
|
|
runScript = initScript;
|
|
|
|
}
|