aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/default.nix
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2025-03-02 16:12:52 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2025-03-02 16:12:52 +0100
commit75066cddefbeab6d69aa4efe0a4aa97915c98c84 (patch)
tree167d601d91d560c7373b18b0abac20568b604fae /pkgs/default.nix
parentfefb6424bddd6ac4bf0b68f30fbf6a7f59658cec (diff)
hybrid shell
Diffstat (limited to 'pkgs/default.nix')
-rw-r--r--pkgs/default.nix44
1 files changed, 24 insertions, 20 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix
index b46e6f8..3957c07 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -1,23 +1,27 @@
-{ lib
-, sources ? import ../nix/sources.nix
+{ sources ? import ../nix/sources.nix
, ...
}:
-(self: super: {
- haskell = super.haskell // {
- packageOverrides = self: super: {
- achat = (self.callCabal2nix "achat" ../. { }).overrideAttrs (_: {
- postInstall = ''
- mkdir -p $out/share
- cp -a ./dist/build/achat/achat.jsexe $out/share
- '';
- });
- haskell-halogen-core = lib.dontCheck (self.callCabal2nix "haskell-halogen-core" sources.haskell-halogen { });
- protolude = lib.dontHaddock (
- lib.appendConfigureFlags (lib.doJailbreak super.protolude) [
- "--ghc-option=-fno-safe-haskell"
- "--ghc-option=-fno-warn-x-partial"
- ]);
- clay = self.callHackage "clay" "0.15.0" { };
+(self: super:
+ let pkgs = self; in
+ {
+ haskell = super.haskell // {
+ packageOverrides = pkgs.lib.composeManyExtensions [
+ super.haskell.packageOverrides
+ (self: super: {
+ achat = (self.callCabal2nix "achat" ../. { }).overrideAttrs (_: {
+ postInstall = ''
+ mkdir -p $out/share
+ cp -a ./dist/build/achat/achat.jsexe $out/share
+ '';
+ });
+ haskell-halogen-core = pkgs.haskell.lib.dontCheck (self.callCabal2nix "haskell-halogen-core" sources.haskell-halogen { });
+ protolude = pkgs.haskell.lib.dontHaddock (
+ pkgs.haskell.lib.appendConfigureFlags (pkgs.haskell.lib.doJailbreak super.protolude) [
+ "--ghc-option=-fno-safe-haskell"
+ "--ghc-option=-fno-warn-x-partial"
+ ]);
+ clay = self.callHackage "clay" "0.15.0" { };
+ })
+ ];
};
- };
-})
+ })