mirror of
https://github.com/SpyHoodle/PrideFetch.git
synced 2024-09-19 22:55:43 +01:00
02cb0c50c7
* Update the flake such that it uses nixpkgs' package with an overriden source rather than keeping a copy * Update flake.nix * Update the flake lock file, and make supported systems match the package * remove surplus whitespace
29 lines
775 B
Nix
29 lines
775 B
Nix
{
|
|
description = "A flake to run pridefetch";
|
|
|
|
inputs = {
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, nixpkgs-unstable }: let
|
|
system = "x86_64-linux";
|
|
|
|
forAllSystems = f: nixpkgs.lib.genAttrs nixpkgs.lib.platforms.all (system: f system);
|
|
in rec {
|
|
packages = forAllSystems (system: let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
};
|
|
pkgs-unstable = import nixpkgs-unstable {
|
|
inherit system;
|
|
};
|
|
in {
|
|
pridefetch = pkgs-unstable.pridefetch.overrideAttrs (finalAttrs: previousAttrs: {
|
|
src = builtins.path { path = ./.; name = "pridefetch"; };
|
|
});
|
|
});
|
|
|
|
defaultPackage = forAllSystems (system: self.packages.${system}.pridefetch);
|
|
};
|
|
}
|