noredink-ui/shell.nix

38 lines
836 B
Nix
Raw Normal View History

2019-10-28 17:43:14 +03:00
let
sources = import ./nix/sources.nix;
nixpkgs = import sources.nixpkgs { };
niv = import sources.niv { };
in with nixpkgs;
2018-12-19 01:43:08 +03:00
stdenv.mkDerivation {
name = "noredink-ui";
buildInputs = [
# base dependencies
git
2019-10-28 17:43:14 +03:00
niv.niv
jq
2020-10-29 08:07:21 +03:00
# building with Shake
2020-10-28 01:29:44 +03:00
haskellPackages.ormolu
(haskellPackages.ghcWithPackages (ps: [ ps.shake ]))
2018-12-19 01:43:08 +03:00
# node dependencies
2019-02-12 22:10:15 +03:00
nodejs
2018-12-19 01:43:08 +03:00
nodePackages.npm
2019-04-01 17:26:15 +03:00
2020-10-29 00:47:30 +03:00
# elm dependencies
elmPackages.elm
elmPackages.elm-format
elmPackages.elm-test
elmPackages.elm-verify-examples
2021-04-06 23:50:52 +03:00
(pkgs.callPackage sources.elm-forbid-import { })
2020-10-29 00:47:30 +03:00
2019-04-01 17:26:15 +03:00
# preview dependencies
python3
2020-11-06 15:22:39 +03:00
watchexec
2020-10-29 16:24:38 +03:00
# stuff we need for running builds in a `nix-shell --pure` environment.
which
2020-11-09 17:47:42 +03:00
netcat-gnu
] ++ lib.optionals stdenv.isLinux [ pkgs.fsatrace pkgs.strace pkgs.cacert ];
2018-12-19 01:43:08 +03:00
}