summaryrefslogtreecommitdiffstats
path: root/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/default.nix b/default.nix
index dc2a890..a821a15 100644
--- a/default.nix
+++ b/default.nix
@@ -1,4 +1,6 @@
-{ pkgs ? import (import ./nix/sources.nix).nixpkgs { } }:
+{ pkgs ? import sources.nixpkgs { }
+, sources ? import ./nix/sources.nix
+}:
let
haskellPackages = pkgs.haskellPackages.override {
overrides = self: super: {
@@ -12,7 +14,8 @@ let
--zsh <($out/bin/$exe --zsh-completion-script $out/bin/$exe)
'';
});
- sh = pkgs.haskell.lib.dontCheck (self.callCabal2nix "sh" (import ./nix/sources.nix).sh { });
+ sensors = pkgs.haskell.lib.dontCheck (self.callCabal2nix "sensors" sources.sensors { });
+ sh = pkgs.haskell.lib.dontCheck (self.callCabal2nix "sh" sources.sh { });
statvfs = pkgs.haskell.lib.markUnbroken (super.statvfs.overrideAttrs (oldAtts: {
patches = [
(pkgs.writers.writeText "statvfs.patch" ''
@@ -29,6 +32,7 @@ let
'')
];
}));
+ # XXX we don't need to depend on patched X11 anymore
X11 = (self.callCabal2nix "X11"
(pkgs.fetchFromGitHub {
owner = "aforemny";
@@ -48,7 +52,7 @@ rec {
inherit haskellPackages;
inherit (haskellPackages) astatusbar;
shell = haskellPackages.shellFor {
- packages = _: [ haskellPackages.astatusbar ];
+ packages = _: [ astatusbar ];
buildInputs = [
pkgs.cabal-install
(pkgs.nerdfonts.override { fonts = [ "IosevkaTerm" ]; })