-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
27 lines (24 loc) · 824 Bytes
/
flake.nix
File metadata and controls
27 lines (24 loc) · 824 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
{
description =
"The fetch for grains, written in rust. Now featuring 100% more grains.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default";
};
outputs = { self, nixpkgs, systems, ... }:
let
inherit (nixpkgs) lib;
pkgsFor = nixpkgs.legacyPackages;
eachSystem = f:
lib.genAttrs (import systems) (system: f system pkgsFor.${system});
in {
packages = eachSystem (system: pkgs: {
default = pkgs.callPackage ./flake/package.nix { };
grainfetch = self.packages.${system}.default;
});
devShells = eachSystem
(_: pkgs: { default = pkgs.callPackage ./flake/shell.nix { }; });
formatter =
eachSystem (_: pkgs: pkgs.callPackage ./flake/formatter.nix { });
};
}