-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathflake.nix
More file actions
29 lines (26 loc) · 853 Bytes
/
Copy pathflake.nix
File metadata and controls
29 lines (26 loc) · 853 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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
};
outputs = { self, nixpkgs, systems }:
let eachSystem = nixpkgs.lib.genAttrs (import systems);
in {
devShells = eachSystem (system:
let pkgs = import nixpkgs { inherit system; };
in {
default =
pkgs.mkShell { packages = [ pkgs.gnumake pkgs.flex pkgs.bison ]; };
});
packages = eachSystem (system:
let
pkgs = import nixpkgs { inherit system; };
version = if self ? shortRev then self.shortRev else "nix-dirty";
in {
default = pkgs.callPackage ./default.nix { inherit version; };
mingw = pkgs.pkgsCross.mingw32.callPackage ./default.nix {
inherit version;
};
});
};
}