noredink-ui/shell.nix

49 lines
1.1 KiB
Nix
Raw Normal View History

2019-10-28 17:43:14 +03:00
let
sources = import ./nix/sources.nix;
2022-03-15 19:59:55 +03:00
system = if builtins.currentSystem == "aarch64-darwin" then
"x86_64-darwin"
else
builtins.currentSystem;
2021-11-09 01:02:18 +03:00
nixpkgs = import sources.nixpkgs { inherit system; };
2022-05-26 17:29:42 +03:00
niv = import sources.niv { };
2019-10-28 17:43:14 +03:00
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
2023-04-27 21:41:18 +03:00
zstd
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-language-server
2020-10-29 00:47:30 +03:00
elmPackages.elm-verify-examples
2022-03-15 19:59:55 +03:00
elmPackages.elm-review
2022-03-15 20:26:55 +03:00
elmPackages.elm-json
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
# Buck dependencies
buildifier
] ++ lib.optionals stdenv.isLinux [ pkgs.fsatrace pkgs.strace pkgs.cacert ];
2018-12-19 01:43:08 +03:00
}