PrideFetch/flake.nix

35 lines
907 B
Nix
Raw Normal View History

2022-05-22 20:21:50 +01:00
{
description = "A flake to run pridefetch";
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";
forAllSystems = f: nixpkgs.lib.genAttrs nixpkgs.lib.platforms.all (system: f system);
2022-05-22 20:21:50 +01:00
in rec {
packages = forAllSystems (system: let
2022-05-22 21:00:40 +01:00
pkgs = import nixpkgs {
inherit system;
};
pkgs-unstable = import nixpkgs-unstable {
inherit system;
2022-05-22 21:00:40 +01:00
};
in {
pridefetch = pkgs-unstable.pridefetch.overrideAttrs (finalAttrs: previousAttrs: {
src = builtins.path { path = ./.; name = "pridefetch"; };
buildInputs = [
(pkgs-unstable.python3.withPackages (pythonPackages: with pythonPackages; [
distro
psutil
]))
];
});
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
};
}