Skip to content

Commit

Permalink
feat: use devx shell for haskell deps
Browse files Browse the repository at this point in the history
  • Loading branch information
tgunnoe committed Sep 20, 2024
1 parent d7dc6de commit 5a8658c
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 11 deletions.
64 changes: 64 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@
inputs.hackage.follows = "hackage";
inputs.hydra.follows = "blank";
};

devx = {
url = "github:tgunnoe/devx/update";
inputs.haskellNix.follows = "haskell-nix";
inputs.iohk-nix.follows = "iohk-nix";
};
# Used to provide the cardano-node and cardano-cli executables.
cardano-node = {
url = "github:input-output-hk/cardano-node/9.1.0";
Expand All @@ -77,6 +81,7 @@
inputs.haskell-nix.overlay
inputs.iohk-nix.overlays.crypto
inputs.iohk-nix.overlays.haskell-nix-extra
inputs.purescript-overlay.overlays.default
(
self: super: {

Expand Down
4 changes: 2 additions & 2 deletions nix/offchain.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ let

nativeBuildInputs = with pkgs; [
purescript-psa
inputs'.purescript-overlay.packages.purs
pkgs.spago
purs
spago
nodejs-18_x
];

Expand Down
17 changes: 9 additions & 8 deletions nix/shells.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ in
];
inputsFrom = [
onchain.devShells.default
inputs'.devx.devShells.ghc96-minimal-iog
];
packages = with pkgs; [

Expand All @@ -39,12 +40,12 @@ in
self.packages.kupo
self.packages.ogmios

cabal-install
haskellPackages.apply-refact
haskellPackages.cabal-fmt
haskellPackages.fourmolu
haskellPackages.hoogle
ghcid
#cabal-install
# haskellPackages.apply-refact
# haskellPackages.cabal-fmt
# haskellPackages.fourmolu
# haskellPackages.hoogle
#ghcid

watchexec

Expand All @@ -65,8 +66,8 @@ in
# Purescript
purescript-psa
pscid
inputs'.purescript-overlay.packages.purs
inputs'.purescript-overlay.packages.purs-tidy
purs
purs-tidy
self.packages.spago2nix

# no aarch64-darwin for spago 0.21 (stable) from purescript-overlay's spago
Expand Down

0 comments on commit 5a8658c

Please sign in to comment.