mirror of
https://github.com/SpyHoodle/PrideFetch.git
synced 2024-11-22 19:05:41 +00:00
Let flake run under all systems
This commit is contained in:
parent
eaf2fa2e24
commit
b4197e9b95
42
flake.nix
42
flake.nix
@ -4,26 +4,30 @@
|
|||||||
outputs = { self, nixpkgs }: let
|
outputs = { self, nixpkgs }: let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
pkgs = import nixpkgs {
|
forAllSystems = f: nixpkgs.lib.genAttrs nixpkgs.lib.systems.supported.hydra (system: f system);
|
||||||
inherit system;
|
|
||||||
};
|
|
||||||
in rec {
|
in rec {
|
||||||
packages."${system}".pridefetch = pkgs.stdenv.mkDerivation {
|
packages = forAllSystems (system: let
|
||||||
name = "pridefetch";
|
pkgs = import nixpkgs {
|
||||||
buildInputs = [
|
inherit system;
|
||||||
(pkgs.python39.withPackages (pythonPackages: with pythonPackages; [
|
};
|
||||||
distro
|
in {
|
||||||
]))
|
pridefetch = pkgs.stdenv.mkDerivation {
|
||||||
];
|
name = "pridefetch";
|
||||||
unpackPhase = "true";
|
buildInputs = [
|
||||||
installPhase = ''
|
(pkgs.python39.withPackages (pythonPackages: with pythonPackages; [
|
||||||
mkdir -p $out/bin
|
distro
|
||||||
cp ${./pridefetch} $out/bin/pridefetch
|
]))
|
||||||
cp ${./packages.py} $out/bin/packages.py
|
];
|
||||||
chmod +x $out/bin/pridefetch
|
unpackPhase = "true";
|
||||||
'';
|
installPhase = ''
|
||||||
};
|
mkdir -p $out/bin
|
||||||
|
cp ${./pridefetch} $out/bin/pridefetch
|
||||||
|
cp ${./packages.py} $out/bin/packages.py
|
||||||
|
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