working on haskell development shell

This commit is contained in:
2025-05-26 00:06:11 +01:00
parent cd8bb2df8c
commit 0f4f52cb8b
2 changed files with 8 additions and 14 deletions

View File

@@ -2,10 +2,11 @@
description = "Nix flake for P2PRC Haskell library";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
p2prc-main = "path:../../";
};
outputs =
{ nixpkgs, flake-utils, ... }:
{ nixpkgs, flake-utils, p2prc-main-go, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
@@ -20,20 +21,9 @@
cabal-install
haskell.compiler.ghc98
zlib.dev
p2prc-main-go.packages.${system}.default
];
shellHook = ''
pwd
cd ../../
echo "building package"
pwd
nix build .
echo "building package"
pwd
cd Bindings/Haskell
pwd
echo "done!!!!"
'';
};
}
);