forked from ajTronic/turbofetch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
38 lines (31 loc) · 1.12 KB
/
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
33
34
35
36
37
38
{
description =
"A flake that contains the devshell, package, and package overlay of turbofetch";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs@{ self, flake-parts, nixpkgs, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
flake = {
overlays.default = final: prev: {
turbofetch = final.callPackage ./default.nix {
inherit (prev) fetchFromGitHub stdenv musl clang;
};
};
};
perSystem = { config, system, pkgs, ... }: {
_module.args.pkgs = import nixpkgs {
inherit system;
overlays = [ self.overlays.default ];
};
devShells.default = pkgs.mkShell {};
packages.turbofetch = pkgs.turbofetch;
packages.default = config.packages.turbofetch;
apps.turbofetch.program = "${config.packages.turbofetch}/bin/turbofetch";
apps.default.program = config.apps.turbofetch.program;
formatter = pkgs.nixpkgs-fmt;
};
};
}