a music visualizer for my AP Calculus BC final project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
585 B

{ sources ? import ./nix/sources.nix
, pkgs ? import sources.nixpkgs {} }:
let
# import rust compiler
rust = import ./nix/rust.nix { inherit sources; };
# configure naersk to use pinned rust compiler
naersk = pkgs.callPackage sources.naersk {
rustc = rust;
cargo = rust;
};
# tell nix-build to ignore `target/`
src = builtins.filterSource
(path: type: type != "directory" || builtins.baseNameOf path != "target")
./.;
in naersk.buildPackage {
inherit src;
buildInputs = with pkgs; [ pulseaudio ];
nativeBuildInputs = with pkgs; [ pkg-config ];
}