nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 32 lines 943 B view raw
1{lib, stdenv, fetchurl, unzip}: 2 3stdenv.mkDerivation { 4 pname = "amrnb"; 5 version = "11.0.0.0"; 6 srcAmr = fetchurl { 7 url = "https://www.3gpp.org/ftp/Specs/latest/Rel-11/26_series/26104-b00.zip"; 8 sha256 = "1wf8ih0hk7w20vdlnw7jb7w73v15hbxgbvmq4wq7h2ghn0j8ppr3"; 9 }; 10 11 src = fetchurl { 12 url = "http://www.penguin.cz/~utx/ftp/amr/amrnb-11.0.0.0.tar.bz2"; 13 sha256 = "1qgiw02n2a6r32pimnd97v2jkvnw449xrqmaxiivjy2jcr5h141q"; 14 }; 15 16 nativeBuildInputs = [ unzip ]; 17 18 configureFlags = [ "--cache-file=config.cache" "--with-downloader=true" ]; 19 20 postConfigure = '' 21 cp $srcAmr 26104-b00.zip 22 ''; 23 24 meta = { 25 homepage = "http://www.penguin.cz/~utx/amr"; 26 description = "AMR Narrow-Band Codec"; 27 # The wrapper code is free, but not the libraries from 3gpp. 28 # It's a source code reference implementation with patents and licenses on 29 # some countries, not redistributable. 30 license = lib.licenses.unfree; 31 }; 32}