aboutsummaryrefslogtreecommitdiffstats
path: root/default.nix
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-10-12 16:29:05 +0200
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-10-12 17:10:53 +0200
commitf59cd4349c974c8ab7907b4852f5dc86ce4daeed (patch)
tree7eaed9115b8ca5ae46792bbf4471bf007480d174 /default.nix
parent29d9251b15d56f66d06551e158e992ace1856110 (diff)
add doc tests
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix26
1 files changed, 4 insertions, 22 deletions
diff --git a/default.nix b/default.nix
index eacf111..5fa2da4 100644
--- a/default.nix
+++ b/default.nix
@@ -1,30 +1,12 @@
-{ pkgs ? import sources.nixpkgs { }
+{ pkgs ? import sources.nixpkgs { overlays = [ (import ./pkgs { }) ]; }
, sources ? import ./nix/sources.nix
}:
let
- haskellPackages = pkgs.haskell.packages.ghc98.override {
- overrides = self: super: {
- astore = self.callCabal2nix "astore" sources.json2sql { };
- autotypes = self.callCabal2nix "autotypes" ./autotypes { };
- backend = self.callCabal2nix "backend" ./backend { };
- common = self.callCabal2nix "common" ./common { };
- frontend = self.callCabal2nix "frontend" ./frontend { };
- cli = self.callCabal2nix "cli" ./cli { };
- sh = pkgs.haskell.lib.dontCheck (self.callCabal2nix "sh" sources.sh { });
- websockets = pkgs.haskell.lib.doJailbreak super.websockets;
- };
- };
-
- jsHaskellPackages = pkgs.pkgsCross.ghcjs.haskell.packages.ghc98.override {
- overrides = self: super: {
- backend = self.callCabal2nix "backend" ./backend { };
- common = self.callCabal2nix "common" ./common { };
- frontend = self.callCabal2nix "frontend" ./frontend { };
- };
- };
+ haskellPackages = pkgs.haskell.packages.ghc98;
+ jsHaskellPackages = pkgs.pkgsCross.ghcjs.haskell.packages.ghc98;
in
rec {
- inherit (haskellPackages) backend;
+ inherit (haskellPackages) backend cli;
inherit (jsHaskellPackages) frontend;
shell = haskellPackages.shellFor {
packages = _: [