flake.nix
36 lines · 819 bytes
1{
2 description = "Watch anime in cli with Anilist Integration and Discord RPC ";
3
4 inputs = {
5 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6 systems.url = "github:nix-systems/default";
7 flake-parts = {
8 url = "github:hercules-ci/flake-parts";
9 inputs.nixpkgs-lib.follows = "nixpkgs";
10 };
11 };
12
13 outputs = {
14 nixpkgs,
15 systems,
16 flake-parts,
17 ...
18 } @ inputs:
19 flake-parts.lib.mkFlake {inherit inputs;} {
20 systems = import systems;
21
22 perSystem = {pkgs, ...}: let
23 package = pkgs.callPackage ./package.nix {};
24 in {
25 packages = {
26 default = package;
27 curd = package;
28 };
29
30 formatter = pkgs.alejandra;
31 devShells.default = pkgs.mkShellNoCC {
32 inputsFrom = [package];
33 };
34 };
35 };
36}