Skip to content

Commit

Permalink
Fix cabal file
Browse files Browse the repository at this point in the history
Add server compat `shell.nix`
  • Loading branch information
ngua committed Jan 25, 2022
1 parent 89d3ca4 commit bcfabf0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -9,6 +9,7 @@
**/.psa*
**/.spago
**/.spago2nix*
.projectile
result
result-*
.envrc
Expand All @@ -17,3 +18,4 @@ result-*
**/node_modules/
.node
.node-cfg
server/dist-newstyle
4 changes: 2 additions & 2 deletions server/cardano-browser-tx-server.cabal
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions 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}

0 comments on commit bcfabf0

Please sign in to comment.