generated from aboutcode-org/skeleton
-
Notifications
You must be signed in to change notification settings - Fork 10
/
flake.nix
25 lines (23 loc) · 861 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
{
description = "Parse and compare all the package versions and all the ranges. From debian, npm, pypi, ruby and more. Process all the version range specs and expressions.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }: ({
overlays.default = import ./overlay.nix;
}) // (
let
supportedSystems = [ "aarch64-darwin" "aarch64-linux" "x86_64-darwin" "x86_64-linux" ];
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
nixpkgsFor = forAllSystems (system: self.overlays.default null nixpkgs.legacyPackages.${system});
in
{
packages = forAllSystems (system: rec {
python3Packages = {
inherit (nixpkgsFor.${system}.python3Packages) univers;
};
default = python3Packages.univers;
});
}
);
}