Skip to content

Commit

Permalink
Merge pull request #1 from hariamoor-mlabs/impl-flake
Browse files Browse the repository at this point in the history
Add flake and formatting
  • Loading branch information
L-as committed Jun 24, 2022
2 parents 25dc6ab + 5aa0d92 commit b2eafac
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 8 deletions.
41 changes: 41 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions flake.nix
@@ -0,0 +1,12 @@
{
description = "Plutarch 2.0 (WIP)";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.simpleFlake {
inherit self nixpkgs;
name = "plutarch-core";
shell = ./shell.nix;
};
}
5 changes: 3 additions & 2 deletions plutarch-core.nix
Expand Up @@ -5,9 +5,10 @@ mkDerivation {
src = ./.;
isLibrary = true;
libraryHaskellDepends = [
base generics-sop
base
generics-sop
];
testHaskellDepends = [];
testHaskellDepends = [ ];
license = lib.licenses.mit;
hydraPlatforms = lib.platforms.none;
doHaddock = false;
Expand Down
10 changes: 4 additions & 6 deletions shell.nix
@@ -1,11 +1,9 @@
{ pkgs ? import <nixpkgs> {} }:
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
let
#mkDerivation = p: old: arg: old (arg // {libraryHaskellDepends = arg.libraryHaskellDepends ++ arg.testHaskellDepends;});
in haskell.packages.ghc922.shellFor {
haskell.packages.ghc923.shellFor {
packages = p: [
(p.callPackage ./plutarch-core.nix {})
(p.callPackage ./plutarch-core.nix { })
];
buildHoogle = false;
buildInputs = [ cabal-install cabal2nix curl ];
buildInputs = [ cabal-install cabal2nix curl nixpkgs-fmt ];
}

0 comments on commit b2eafac

Please sign in to comment.