Skip to content

Instantly share code, notes, and snippets.

@jasom

jasom/shell.nix Secret

Created December 2, 2020 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasom/75d1f83212899c1bc07499b31270a6f5 to your computer and use it in GitHub Desktop.
Save jasom/75d1f83212899c1bc07499b31270a6f5 to your computer and use it in GitHub Desktop.
nix-shell --run 'echo hi' seems to just give me an interactive shell without running `echo hi`
{ pkgs ? import <nixpkgs> {} }:
(pkgs.buildFHSUserEnv {
name = "deepspeech-fhs";
targetPkgs = pkgs: (with pkgs;
[
libev
zlib
gcc
readline
]);
multiPkgs = pkgs: (with pkgs;
[ udev
alsaLib
]);
}).env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment