Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 69 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
description = "dacquery -- query the capabilities of audio DACs and other USB devices";

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

outputs =
{ self, nixpkgs }:
let
systems = [
"x86_64-linux"
"aarch64-linux"
"i686-linux"
];
forAllSystems = nixpkgs.lib.genAttrs systems;
in
{
packages = forAllSystems (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
default = pkgs.stdenv.mkDerivation {
pname = "dacquery";
version = "1.0.1";

src = self;

strictDeps = true;

nativeBuildInputs = with pkgs; [
autoreconfHook
pkg-config
];

buildInputs = with pkgs; [
alsa-lib
];

meta = with pkgs.lib; {
description = "Query the capabilities of audio DACs and other USB devices";
homepage = "https://github.com/mikebrady/dacquery";
license = licenses.gpl2Only;
mainProgram = "dacquery";
platforms = platforms.linux;
};
};
}
);

devShells = forAllSystems (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
default = pkgs.mkShell {
packages = with pkgs; [
autoreconfHook
pkg-config
alsa-lib
];
};
}
);
};
}