fixing nix development and build environments
This commit is contained in:
@@ -11,13 +11,13 @@
|
||||
system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
hsPkgs = pkgs.haskell.packages.ghc98;
|
||||
in
|
||||
{
|
||||
packages.default = hsPkgs.callCabal2nix "p2prc" ./. {};
|
||||
packages.default = pkgs.haskellPackages.callPackage ./project.nix {};
|
||||
|
||||
devShell = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
cabal2nix
|
||||
cabal-install
|
||||
haskell.compiler.ghc98
|
||||
zlib.dev
|
||||
|
||||
17
Bindings/Haskell/project.nix
Normal file
17
Bindings/Haskell/project.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ mkDerivation, aeson, base, bytestring, directory, lib, process
|
||||
, text
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "p2prc";
|
||||
version = "0.1.0.0";
|
||||
src = ./.;
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
libraryHaskellDepends = [
|
||||
aeson base bytestring directory process text
|
||||
];
|
||||
executableHaskellDepends = [ base ];
|
||||
description = "P2PRC haskell library";
|
||||
license = "unknown";
|
||||
mainProgram = "p2prc";
|
||||
}
|
||||
Reference in New Issue
Block a user