PrideFetch/flake.nix
Skyler 02cb0c50c7
Update the flake such that it uses nixpkgs' package (#17)
* 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
2022-06-05 13:37:33 +01:00

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);
};
}