diff --git a/.gitignore b/.gitignore index 5fbb8d966a..54b5fdfa24 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ **/.psa* **/.spago **/.spago2nix* +.projectile result result-* .envrc @@ -17,3 +18,4 @@ result-* **/node_modules/ .node .node-cfg +server/dist-newstyle diff --git a/server/cardano-browser-tx-server.cabal b/server/cardano-browser-tx-server.cabal index 60ff05a43d..88fa36303c 100644 --- a/server/cardano-browser-tx-server.cabal +++ b/server/cardano-browser-tx-server.cabal @@ -47,8 +47,8 @@ executable cardano-browser-tx-server ghc-options: -Wall -Wcompat -Wincomplete-uni-patterns -Wredundant-constraints -Wmissing-export-lists -Wmissing-deriving-strategies - - hs-source-dirs: src/ + hs-source-dirs: src + main-is: Main.hs build-depends: , aeson , base diff --git a/server/shell.nix b/server/shell.nix new file mode 100644 index 0000000000..6d2a254448 --- /dev/null +++ b/server/shell.nix @@ -0,0 +1,16 @@ +let + system = builtins.currentSystem; + lock = builtins.fromJSON (builtins.readFile ../flake.lock); +in +( + import + ( + fetchTarball { + url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; + sha256 = lock.nodes.flake-compat.locked.narHash; + } + ) + { + src = ./..; + } +).defaultNix.hsDevShell.${system}