diff --git a/nix/templates/haskell/flake.lock b/nix/templates/haskell/flake.lock index e3d6a69..1a94262 100644 --- a/nix/templates/haskell/flake.lock +++ b/nix/templates/haskell/flake.lock @@ -86,11 +86,11 @@ ] }, "locked": { - "lastModified": 1748291200, - "narHash": "sha256-VUJo8sgFHLPouEpZs+QM/dI6S2ZJE6F0cj4SLWg1cBg=", + "lastModified": 1748386148, + "narHash": "sha256-bbm2KWAWE2jdYl06xwNg8A3Frz1+ujiziKaeh+GGGQg=", "owner": "xecarlox94", "repo": "p2p-rendering-computation", - "rev": "5fa625160ee6627de61ca13991de3250c504be54", + "rev": "85806ab035b22d451de5531c18c07461df1d7c77", "type": "github" }, "original": { diff --git a/nix/templates/haskell/flake.nix b/nix/templates/haskell/flake.nix index c1c4281..bb734ca 100644 --- a/nix/templates/haskell/flake.nix +++ b/nix/templates/haskell/flake.nix @@ -40,11 +40,13 @@ cabal-install ]; text = '' - # TODO: add this check - # if [ -f *.cabal ]; then echo "The file exists"; fi - cabal init + cabal init --minimal echo "RUNNING" + + # TODO: sed command to fix bash import and add p2prc import + # TODO: sed command to add p2prc example to main file cabal2nix . > ./project.nix; + git add . ''; }; @@ -57,6 +59,7 @@ }; # TODO: override haskell binding lib devshell + # FIX: p2prc library not available in dev shell devShells.default = pkgs.mkShell { packages = with pkgs; [ cabal2nix @@ -69,7 +72,7 @@ ]; shellHook = '' - cabal2nix . > ./project.nix; + cabal2nix . > ./project.nix ''; }; }