mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-04 07:02:12 +03:00
42 lines
1.0 KiB
Nix
42 lines
1.0 KiB
Nix
let
|
|
sources = import ./nix/sources.nix;
|
|
nixpkgs = import sources.nixpkgs { };
|
|
niv = import sources.niv { };
|
|
in with nixpkgs;
|
|
stdenv.mkDerivation {
|
|
name = "noredink-ui";
|
|
buildInputs = [
|
|
# base dependencies
|
|
git
|
|
niv.niv
|
|
jq
|
|
|
|
# building with Shake
|
|
haskellPackages.ormolu
|
|
(haskellPackages.ghcWithPackages (ps: [ ps.shake ]))
|
|
|
|
# node dependencies
|
|
nodejs
|
|
nodePackages.npm
|
|
|
|
# elm dependencies
|
|
elmPackages.elm
|
|
elmPackages.elm-format
|
|
elmPackages.elm-test
|
|
elmPackages.elm-verify-examples
|
|
(import sources.elm-forbid-import { pkgs = nixpkgs; })
|
|
|
|
# preview dependencies
|
|
python3
|
|
watchexec
|
|
|
|
# stuff we need for running builds in a `nix-shell --pure` environment.
|
|
which
|
|
netcat-gnu
|
|
] ++ lib.optionals stdenv.isLinux [ pkgs.fsatrace pkgs.strace pkgs.cacert ];
|
|
|
|
# environment variables
|
|
DEPRECATED_MODULES =
|
|
"Html,Accessibility,Accessibility.Aria,Accessibility.Key,Accessibility.Landmark,Accessibility.Live,Accessibility.Role,Accessibility.Style,Accessibility.Widget";
|
|
}
|