File: flake.nix

package info (click to toggle)
wiremix 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 656 kB
  • sloc: makefile: 25
file content (53 lines) | stat: -rw-r--r-- 1,024 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
  description = "Simple TUI audio mixer for PipeWire";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    systems.url = "github:nix-systems/default-linux";
  };

  outputs =
    {
      self,
      nixpkgs,
      systems,
      ...
    }:
    let
      eachSystem =
        callback:
        nixpkgs.lib.genAttrs (import systems) (
          system: callback nixpkgs.legacyPackages.${system}
        );
    in
    {
      devShells = eachSystem (pkgs: {
        default =
          with pkgs;
          mkShell {
            packages = [
              rustc
              cargo
              rustfmt
              nixfmt-rfc-style
              clippy
              pkg-config
              rustPlatform.bindgenHook

              pipewire
            ];
          };
      });

      packages = eachSystem (
        pkgs:
        let
          package = pkgs.callPackage ./package.nix { };
        in
        {
          default = package;
          wiremix = package;
        }
      );
    };
}