Skip to content

Instantly share code, notes, and snippets.

@srhb
Created August 1, 2018 08:15
Show Gist options
  • Save srhb/62b2afa51eceddbbbbb0544399c5334c to your computer and use it in GitHub Desktop.
Save srhb/62b2afa51eceddbbbbb0544399c5334c to your computer and use it in GitHub Desktop.
{ pkgs ? import <nixpkgs> {} }:
let
pyalsaaudio = pkgs.pythonPackages.buildPythonPackage rec {
pname = "pyalsaaudio";
version = "0.8.4";
src = pkgs.pythonPackages.fetchPypi {
inherit pname version;
sha256 = "84e8f8da544d7f4bd96479ce4a237600077984d9be1d7f16c1d9a492ecf50085";
};
doCheck = false;
buildInputs = [ pkgs.alsaLib ];
};
shell = pkgs.python.buildEnv.override {
extraLibs = [ pyalsaaudio ];
};
in
if pkgs.lib.inNixShell then shell.env else pyalsaaudio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment