-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
35 lines (35 loc) · 972 Bytes
/
flake.nix
File metadata and controls
35 lines (35 loc) · 972 Bytes
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
{
inputs = {
utils.url = "github:numtide/flake-utils";
# to update: nix flake update nixpkgs
nixpkgs.url = "github:nixos/nixpkgs";
};
outputs = { self, utils, nixpkgs }:
(utils.lib.eachSystem [ "x86_64-linux" "ppc64" "ppc32" ] (system:
let
pkgsLut = {
x86_64-linux = nixpkgs.legacyPackages.${system}.extend self.overlay;
ppc32 = import nixpkgs {
crossSystem.config = "powerpc-none-eabi";
system = "x86_64-linux";
overlays = [ self.overlay ];
};
ppc64 = import nixpkgs {
crossSystem.config = "powerpc64-unknown-linux-gnuabielfv2";
system = "x86_64-linux";
overlays = [ self.overlay ];
config.allowUnsupportedSystem = true;
};
};
pkgs = pkgsLut.${system};
in {
packages = {
inherit (pkgs) synthxex;
};
devShell = pkgs.synthxex;
})) // {
overlay = self: super: {
synthxex = self.callPackage ./synthxex.nix {};
};
};
}