Skip to content

Commit

Permalink
Add overlay.nix which combines taffybar override with environment ove…
Browse files Browse the repository at this point in the history
…rride
  • Loading branch information
colonelpanic8 committed Jun 18, 2019
1 parent 7d2c5f1 commit b3ca25b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions overlay.nix
@@ -0,0 +1,12 @@
self: super:

let
sourceTransformer = if builtins.getEnv "CI" == "" then builtins.fetchGit else (x: x);
taffybarOverlay = _: pkgs: {
haskellPackages = pkgs.haskellPackages.override (old: {
overrides = pkgs.lib.composeExtensions (old.overrides or (_: _: {})) (self: super: {
taffybar = self.callCabal2nix "taffybar" (sourceTransformer ./.) { inherit (pkgs) gtk3; };
});
});
};
in super.lib.composeExtensions taffybarOverlay (import ./environment.nix) self super

0 comments on commit b3ca25b

Please sign in to comment.