forked from Wraient/curd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
32 lines (28 loc) · 783 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
26
27
28
29
30
31
32
{
description = "Watch anime in cli with Anilist Integration and Discord RPC ";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default";
};
outputs = {
nixpkgs,
systems,
self,
...
}: let
eachSystem = nixpkgs.lib.genAttrs (import systems);
in {
packages = eachSystem (system: let
package = nixpkgs.legacyPackages.${system}.callPackage ./package.nix {};
in {
default = package;
curd = package;
});
devShells = eachSystem (system: {
default = nixpkgs.legacyPackages.${system}.mkShellNoCC {
inputsFrom = [self.packages.${system}.default];
};
});
formatter = eachSystem (system: nixpkgs.legacyPackages.${system}.alejandra);
};
}