Skip to content

Commit

Permalink
refactoring(build): clean flake.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
blackheaven committed Dec 27, 2023
1 parent 076208a commit d026af6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,22 @@
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
pkgs = import nixpkgs { inherit system; };

disableTests = pkgs.haskell.lib.dontCheck;

enableTests = pkgs.haskell.lib.doCheck;

jailbreakUnbreak = pkg:
pkgs.haskell.lib.doJailbreak (disableTests (pkgs.haskell.lib.unmarkBroken pkg));

haskellPackages = pkgs.haskellPackages;
in
rec
{
packages.bloodhound =
disableTests (haskellPackages.callCabal2nix "bloodhound" ./. rec {
disableTests (haskellPackages.callCabal2nix "bloodhound" ./. {
# Dependency overrides go here
});
packages.bloodhound-examples =
haskellPackages.callCabal2nix "bloodhound-examples" ./examples rec {
haskellPackages.callCabal2nix "bloodhound-examples" ./examples {
# Dependency overrides go here
bloodhound = packages.bloodhound;
};
Expand Down

0 comments on commit d026af6

Please sign in to comment.