custom-nixpkgs/flake.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.2 KiB
Nix
Raw Normal View History

2022-11-23 17:14:41 +05:30
{
description = "My personal NUR repository";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.systems.url = "github:msfjarvis/flake-systems";
inputs.fenix.url = "github:nix-community/fenix";
inputs.fenix.inputs.nixpkgs.follows = "nixpkgs";
inputs.nix-github-actions.url = "github:nix-community/nix-github-actions";
inputs.nix-github-actions.inputs.nixpkgs.follows = "nixpkgs";
inputs.rust-manifest.url = "https://static.rust-lang.org/dist/2023-10-22/channel-rust-nightly.toml";
inputs.rust-manifest.flake = false;
2022-11-23 17:14:41 +05:30
outputs = {
self,
nixpkgs,
fenix,
nix-github-actions,
systems,
rust-manifest,
2023-05-10 12:17:04 +05:30
}: let
eachSystem = nixpkgs.lib.genAttrs (import systems);
pkgs = eachSystem (system: (nixpkgs.legacyPackages.${system}.extend fenix.overlays.default));
2023-06-20 14:13:22 +05:30
packagesFn = pkgs:
import ./default.nix {
inherit pkgs rust-manifest;
2023-08-29 16:03:17 +05:30
inherit (pkgs) lib;
2023-05-01 20:53:47 +05:30
fenix = import fenix {inherit pkgs;};
2023-06-20 14:13:22 +05:30
};
in {
packages = eachSystem (system: packagesFn pkgs.${system});
2023-06-26 11:30:56 +05:30
overlays.default = final: prev: packagesFn prev;
githubActions = nix-github-actions.lib.mkGithubMatrix {
checks = nixpkgs.lib.getAttrs [ "x86_64-linux" ] self.packages;
};
2022-11-23 17:14:41 +05:30
};
}