-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
45 lines (45 loc) · 1.44 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
description = "anthywl";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
systems = [ "x86_64-linux" "aarch64-linux" "i686-linux" "x86_64-darwin" ];
overlay = final: prev: {
anthywl = final.callPackage ./default.nix {
python = final.python3;
libscfg = final.callPackage
({ stdenv
, fetchFromSourcehut
, meson
, ninja
}:
stdenv.mkDerivation {
pname = "libscfg";
version = "unstable-2021-12-31";
src = fetchFromSourcehut {
owner = "~emersion";
repo = "libscfg";
rev = "a4f023d2e1c2c2ac71eb23a989bd58bd3f77fb2a";
hash = "sha256-048widtMMcgnXNUqqTAEXDdL+u+nmWb9jTEc2C5mzCo=";
};
nativeBuildInputs = [ meson ninja ];
}
)
{ };
};
};
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
nixpkgsFor = forAllSystems (system:
import nixpkgs {
inherit system;
overlays = [ self.overlay ];
config.allowUnfree = true;
}
);
in
{
inherit overlay;
defaultPackage = forAllSystems (system: nixpkgsFor.${system}.anthywl);
packages = forAllSystems (system: { inherit (nixpkgsFor.${system}) anthywl; });
};
}