SHARE
TWEET

Untitled

a guest Jul 12th, 2019 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ cat shell.nix
  2. { pkgs ? import <nixpkgs> {} }:
  3.  
  4. pkgs.mkShell
  5.   { buildInputs = [
  6.         pkgs.clang
  7.         pkgs.binutils
  8.         pkgs.fftwSinglePrec
  9.         pkgs.llvmPackages.openmp
  10.         pkgs.libfvad
  11.     ];
  12.   }
  13.  
  14. $ cat derivations/default.nix
  15. self: super:
  16.  
  17. {
  18.   libfvad = super.callPackage ./libfvad { };
  19. }
  20.  
  21. $ cat derivations/libfvad/default.nix
  22. { pkgs
  23. , autoreconfHook }:
  24.  
  25. let
  26.   commit = "ee69951e7ec6ed3a0caf547f35f103280b9831de";
  27.   stdenv = pkgs.stdenv;
  28. in
  29.  
  30. stdenv.mkDerivation {
  31.   name = "libfvad";
  32.   src = pkgs.fetchgit {
  33.     url = "https://github.com/talonvoice/libfvad.git";
  34.     rev = commit;
  35.     sha256 = "0jzwjx0ca6m1c422q54k1gw4y5ik18zcf9rx9bsbnbkgbmgh1agp";
  36.   };
  37.   enableParallelBuilding = true;
  38.  
  39.   meta = with stdenv.lib; {
  40.     description = "A fork of the VAD engine that is part of the WebRTC Native Code package (https://webrtc.org/native-code/), for use as a standalone library independent from the rest of the WebRTC code.";
  41.     homepage = "https://github.com/talonvoice/libfvad";
  42.   };
  43. }
  44.  
  45. $ nix-shell -I nixpkg-overlays=$(pwd)/derivations
  46. error: attribute 'libfvad' missing, at <snip>/shell.nix:9:9
  47. (use '--show-trace' to show detailed location information)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top