-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
31 lines (31 loc) · 1.09 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
description = "gtk-sni-tray";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
git-ignore-nix.url = github:hercules-ci/gitignore.nix/master;
status-notifier-item.url = "github:taffybar/status-notifier-item/master";
};
outputs = { self, flake-utils, nixpkgs, git-ignore-nix, status-notifier-item }:
let
overlay = final: prev: {
haskellPackages = prev.haskellPackages.override (old: {
overrides = prev.lib.composeExtensions (old.overrides or (_: _: {}))
(hself: hsuper: {
gtk-sni-tray =
hself.callCabal2nix "gtk-sni-tray"
(git-ignore-nix.lib.gitignoreSource ./.)
{ inherit (final) gtk3; };
});
});
};
overlays = [ overlay status-notifier-item.overlay ];
in flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs { inherit system overlays; config.allowBroken = true; };
in
rec {
devShell = pkgs.haskellPackages.shellFor {
packages = p: [ p.gtk-sni-tray ];
};
defaultPackage = pkgs.haskellPackages.gtk-sni-tray;
}) // { inherit overlay overlays; } ;
}