Files
p2p-rendering-computation/Bindings/Haskell/flake.nix
2025-05-26 21:08:11 +01:00

29 lines
683 B
Nix

{
description = "Nix flake for P2PRC Haskell library";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
p2prc-main.url = "../../";
};
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.packages.${system}.default
];
};
}
);
}