Files
p2p-rendering-computation/Bindings/Haskell/flake.nix

29 lines
664 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
ghc
zlib.dev
p2prc-main.packages.${system}.default
];
};
}
);
}