Skip to content

Instantly share code, notes, and snippets.

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