1
0
Fork 0
packages/flake.nix

45 lines
905 B
Nix

{
description = "meterriblecrew.net package flake";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.09-small";
outputs = inputs@{ self, nixpkgs }: let
systems = [
"x86_64-linux"
"i686-linux"
"x86_64-darwin"
"aarch64-linux"
"armv6l-linux"
"armv7l-linux"
];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
in {
nixosModules = {
};
packages = forAllSystems (system: import ./. {
pkgs = import nixpkgs { inherit system; };
});
overlay = next: prev:
let localPkgs = import ./. { pkgs = next; };
in {
inherit (localPkgs)
janus-gateway
nextcloud-spreed-signaling
usrsctp
;
} // prev.lib.optionalAttrs (prev.system == "x86_64-linux") {
inherit (localPkgs)
ryzenadj
ryzen_smu
;
};
};
}