-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
29 lines (29 loc) · 1.11 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
{
description = "Path(s) Merging Tool";
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.05"; # Stable
};
outputs = { self, nixpkgs }:
let
#supportedSystems = [ "x86_64-linux" ];
#supportedTargets = [ "x86_64-unknown-linux-musl" "x86_64-unknown-linux-gnu" ];
pkgsFor = nixpkgs.legacyPackages;
#forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
in
{
packages = {
x86_64-linux = rec {
x86_64-unknown-linux-gnu = pkgsFor.x86_64-linux.callPackage ./default.nix { target = "x86_64-unknown-linux-gnu"; };
x86_64-unknown-linux-musl = pkgsFor.x86_64-linux.callPackage ./default.nix { target = "x86_64-unknown-linux-musl"; };
default = x86_64-unknown-linux-musl;
};
};
devShells = {
x86_64-linux = rec {
x86_64-unknown-linux-gnu = pkgsFor.x86_64-linux.callPackage ./shell.nix { target = "x86_64-unknown-linux-gnu"; };
x86_64-unknown-linux-musl = pkgsFor.x86_64-linux.callPackage ./shell.nix { target = "x86_64-unknown-linux-musl"; };
default = x86_64-unknown-linux-gnu;
};
};
};
}