-
Notifications
You must be signed in to change notification settings - Fork 6
/
flake.nix
31 lines (24 loc) · 859 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
{
description = "A very basic flake";
inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; };
outputs = { self, nixpkgs }:
let
systems = [ "x86_64-linux" "aarch64-linux" "i686-linux" "x86_64-darwin" ];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
nixpkgsFor = forAllSystems (system:
import nixpkgs {
inherit system;
overlays = [ self.overlay ];
});
in {
overlay = final: prev: {
fixedout = final.callPackage ./. { };
sharball = final.callPackage ./tarball { };
nix-dpkg = final.callPackage ./dpkg { };
};
packages = forAllSystems (system: {
inherit (nixpkgsFor.${system}) fixedout sharball nix-dpkg;
});
defaultPackage = forAllSystems (system: self.packages.${system}.fixedout);
};
}