-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
33d226f
commit 3f89528
Showing
2 changed files
with
6 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(import (fetchTarball https://github.com/edolstra/flake-compat/archive/master.tar.gz) { | ||
src = builtins.fetchGit ./.; | ||
}).defaultNix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,3 @@ | ||
let | ||
sources = import ./nix/sources.nix; | ||
system = if builtins.currentSystem == "aarch64-darwin" then | ||
"x86_64-darwin" | ||
else | ||
builtins.currentSystem; | ||
nixpkgs = import sources.nixpkgs { inherit system; }; | ||
niv = import sources.niv { }; | ||
in with nixpkgs; | ||
stdenv.mkDerivation { | ||
name = "noredink-ui"; | ||
buildInputs = [ | ||
# base dependencies | ||
git | ||
niv.niv | ||
jq | ||
zstd | ||
|
||
# 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-language-server | ||
elmPackages.elm-verify-examples | ||
elmPackages.elm-review | ||
elmPackages.elm-json | ||
(pkgs.callPackage sources.elm-forbid-import { }) | ||
|
||
# preview dependencies | ||
python3 | ||
watchexec | ||
|
||
# stuff we need for running builds in a `nix-shell --pure` environment. | ||
which | ||
netcat-gnu | ||
|
||
# Buck dependencies | ||
black | ||
buildifier | ||
] ++ lib.optionals stdenv.isLinux [ pkgs.fsatrace pkgs.strace pkgs.cacert ]; | ||
} | ||
(import (fetchTarball https://github.com/edolstra/flake-compat/archive/master.tar.gz) { | ||
src = builtins.fetchGit ./.; | ||
}).shellNix |