Skip to content

Commit

Permalink
simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
patr-ck committed May 23, 2021
1 parent 07b5bf5 commit 51ceea4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 27 deletions.
1 change: 0 additions & 1 deletion .envrc

This file was deleted.

6 changes: 3 additions & 3 deletions flake.lock

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

33 changes: 12 additions & 21 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,19 @@
inputs.flake-utils.url = "github:numtide/flake-utils";

outputs = { self, nixpkgs, haskellNix, flake-utils }:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
builtins.trace haskellNix (flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
overlays =
[ haskellNix.overlay
(final: prev: {
test = final.haskell-nix.project {
src = ./.;
compiler-nix-name = "ghc8104";
};
})
];
pkgs = import nixpkgs { inherit system overlays; };
flake = pkgs.test.flake {};
overlays = [ haskellNix.overlay (final: prev: {
test2 = final.haskell-nix.project' {
src = ./.;
compiler-nix-name = "ghc8104";
};
}) ];
pkgs = import nixpkgs { inherit system overlays; };
flake = pkgs.test2.flake {};
in
flake // {
defaultPackage = flake.packages."test:exe:test";

devShell = pkgs.test.shellFor {
tools = {
cabal = "latest";
};
};
}
);
defaultPackage = flake.packages."test2:exe:test2";
}
));
}
4 changes: 2 additions & 2 deletions test.cabal → test2.cabal
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
cabal-version: >=1.10
name: test
name: test2
version: 0.1.0.0
author: Test
maintainer: test@test.test
build-type: Simple

executable test
executable test2
main-is: Main.hs
build-depends: base >=4.13
, reflex
Expand Down

0 comments on commit 51ceea4

Please sign in to comment.