mirror of
https://github.com/SpyHoodle/PrideFetch.git
synced 2024-11-09 21:25:42 +00:00
Let flake run under all systems
This commit is contained in:
parent
eaf2fa2e24
commit
b4197e9b95
10
flake.nix
10
flake.nix
@ -4,11 +4,14 @@
|
|||||||
outputs = { self, nixpkgs }: let
|
outputs = { self, nixpkgs }: let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
|
forAllSystems = f: nixpkgs.lib.genAttrs nixpkgs.lib.systems.supported.hydra (system: f system);
|
||||||
|
in rec {
|
||||||
|
packages = forAllSystems (system: let
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
};
|
};
|
||||||
in rec {
|
in {
|
||||||
packages."${system}".pridefetch = pkgs.stdenv.mkDerivation {
|
pridefetch = pkgs.stdenv.mkDerivation {
|
||||||
name = "pridefetch";
|
name = "pridefetch";
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
(pkgs.python39.withPackages (pythonPackages: with pythonPackages; [
|
(pkgs.python39.withPackages (pythonPackages: with pythonPackages; [
|
||||||
@ -23,7 +26,8 @@
|
|||||||
chmod +x $out/bin/pridefetch
|
chmod +x $out/bin/pridefetch
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
});
|
||||||
|
|
||||||
defaultPackage."${system}" = packages."${system}".pridefetch;
|
defaultPackage = forAllSystems (system: self.packages.${system}.pridefetch);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user