2022-05-22 20:21:50 +01:00
|
|
|
{
|
|
|
|
description = "A flake to run pridefetch";
|
|
|
|
|
2022-06-05 13:37:33 +01:00
|
|
|
inputs = {
|
|
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, nixpkgs-unstable }: let
|
2022-05-22 20:21:50 +01:00
|
|
|
system = "x86_64-linux";
|
2022-06-05 13:37:33 +01:00
|
|
|
|
|
|
|
forAllSystems = f: nixpkgs.lib.genAttrs nixpkgs.lib.platforms.all (system: f system);
|
2022-05-22 20:21:50 +01:00
|
|
|
in rec {
|
2022-06-05 13:37:33 +01:00
|
|
|
packages = forAllSystems (system: let
|
2022-05-22 21:00:40 +01:00
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
};
|
2022-06-05 13:37:33 +01:00
|
|
|
pkgs-unstable = import nixpkgs-unstable {
|
|
|
|
inherit system;
|
2022-05-22 21:00:40 +01:00
|
|
|
};
|
2022-06-05 13:37:33 +01:00
|
|
|
in {
|
|
|
|
pridefetch = pkgs-unstable.pridefetch.overrideAttrs (finalAttrs: previousAttrs: {
|
|
|
|
src = builtins.path { path = ./.; name = "pridefetch"; };
|
|
|
|
});
|
2022-05-22 21:00:40 +01:00
|
|
|
});
|
2022-05-22 20:21:50 +01:00
|
|
|
|
2022-05-22 21:00:40 +01:00
|
|
|
defaultPackage = forAllSystems (system: self.packages.${system}.pridefetch);
|
2022-05-22 20:21:50 +01:00
|
|
|
};
|
|
|
|
}
|