From d026af686fd81389450efbbc35c4d87bb0c8a070 Mon Sep 17 00:00:00 2001 From: Gautier DI FOLCO Date: Wed, 27 Dec 2023 08:21:42 +0100 Subject: [PATCH] refactoring(build): clean flake.nix --- flake.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 22226bde..a8c7bfe7 100644 --- a/flake.nix +++ b/flake.nix @@ -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; };