diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-07-21 17:41:45 +0200 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-08-08 15:48:20 +0200 |
commit | 07acb8985844bf1df34eeab13abc0f6ca279d93f (patch) | |
tree | e71af8e80fdcc3d8e4c67a689f58558ddfeb78cf /default.nix | |
parent | 85b4be2d0d4ea2c70883f026d1a5bde6230f626e (diff) |
fix: depend on sensors
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 10 |
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" ]; }) |