fixed haskell development environment

This commit is contained in:
2025-05-26 00:15:36 +01:00
parent 0f4f52cb8b
commit 8a2dfb7b5b
2 changed files with 111 additions and 21 deletions

View File

@@ -2,29 +2,27 @@
description = "Nix flake for P2PRC Haskell library";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
p2prc-main = "path:../../";
p2prc-main.url = "path:../../";
};
outputs =
{ nixpkgs, flake-utils, p2prc-main-go, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.default = pkgs.haskellPackages.callPackage ./project.nix {};
outputs = { nixpkgs, flake-utils, p2prc-main, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.default = pkgs.haskellPackages.callPackage ./project.nix {};
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
cabal2nix
cabal-install
haskell.compiler.ghc98
zlib.dev
p2prc-main-go.packages.${system}.default
];
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
cabal2nix
cabal-install
haskell.compiler.ghc98
zlib.dev
p2prc-main.packages.${system}.default
];
};
}
};
}
);
}