-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
35 lines (30 loc) · 953 Bytes
/
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
32
33
34
35
{
description = "izrss - A RSS reader for the terminal";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs =
{ self, nixpkgs, ... }:
let
systems = [
"x86_64-linux"
"x86_64-darwin"
"i686-linux"
"aarch64-linux"
"aarch64-darwin"
];
forAllSystems =
function: nixpkgs.lib.genAttrs systems (system: function nixpkgs.legacyPackages.${system});
in
{
packages = forAllSystems (pkgs: rec {
default = izrss;
izrss = pkgs.callPackage ./nix/default.nix { version = self.shortRev or "unstable"; };
});
overlays.default = final: _: {
izrss = final.callPackage ./nix/default.nix { version = self.shortRev or "unstable"; };
};
devShells = forAllSystems (pkgs: {
default = pkgs.callPackage ./nix/shell.nix { };
});
homeManagerModules.default = import ./nix/hm-module.nix self;
};
}