29 lines
811 B
Nix
29 lines
811 B
Nix
|
{
|
||
|
inputs = { nixpkgs.url = "github:nixos/nixpkgs"; };
|
||
|
|
||
|
outputs = { self, nixpkgs, flake-utils }:
|
||
|
flake-utils.lib.eachDefaultSystem (system:
|
||
|
let
|
||
|
pkgs = import nixpkgs { inherit system; };
|
||
|
|
||
|
flakePkgs = rec {
|
||
|
rohrkabel = pkgs.callPackage ./nix/rohrkabel.nix { };
|
||
|
discord-screenaudio = pkgs.callPackage ./. { inherit rohrkabel; };
|
||
|
};
|
||
|
in rec {
|
||
|
packages = flake-utils.lib.flattenTree flakePkgs;
|
||
|
|
||
|
defaultPackage = packages.discord-screenaudio;
|
||
|
|
||
|
legacyPackages = pkgs;
|
||
|
|
||
|
devShell = pkgs.mkShell {
|
||
|
inputsFrom = with flakePkgs; [ discord-screenaudio ];
|
||
|
|
||
|
packages = (with pkgs; [ pipewire.pulse clang-tools ]);
|
||
|
|
||
|
PKG_CONFIG_PATH = with pkgs; "${pipewire.dev}/lib/pkgconfig";
|
||
|
};
|
||
|
});
|
||
|
}
|