nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 61 lines 1.6 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 fetchpatch, 6 fetchDebianPatch, 7 glib, 8 pkg-config, 9 libogg, 10 libvorbis, 11 libmad, 12}: 13 14stdenv.mkDerivation rec { 15 pname = "streamripper"; 16 version = "1.64.6"; 17 18 src = fetchurl { 19 url = "mirror://sourceforge/streamripper/${pname}-${version}.tar.gz"; 20 sha256 = "0hnyv3206r0rfprn3k7k6a0j959kagsfyrmyjm3gsf3vkhp5zmy1"; 21 }; 22 23 patches = [ 24 # fix build with gcc 14 25 (fetchDebianPatch { 26 inherit pname version; 27 debianRevision = "2"; 28 patch = "1075541-gcc14"; 29 hash = "sha256-30bz7CDmbq+Bd+jTKSq7aJsXUJQAQp3nnJZvt3Qbp8Q="; 30 }) 31 # fix parse of URIs containing colons (https://bugs.debian.org/873964) 32 (fetchDebianPatch { 33 inherit pname version; 34 debianRevision = "2"; 35 patch = "873964-http"; 36 hash = "sha256-D6koUCbnJHtRuq2zZy9VrxymuGXN1COacbQhphgB8qo="; 37 }) 38 # fix SR_ERROR_INVALID_METADATA caused by HTTP chunking 39 # (https://sourceforge.net/p/streamripper/bugs/193/#6a82) 40 (fetchpatch { 41 name = "streamripper-http-1.0.patch"; 42 url = "https://sourceforge.net/p/streamripper/bugs/_discuss/thread/df13e77a/6a82/attachment/streamripper-http-1.0.patch"; 43 hash = "sha256-EhkxAqMcRJ4IJ6BLrpSQu6FomfEbxvgAu12vaDdNqEU="; 44 }) 45 ]; 46 47 nativeBuildInputs = [ pkg-config ]; 48 buildInputs = [ 49 glib 50 libogg 51 libvorbis 52 libmad 53 ]; 54 55 meta = { 56 homepage = "https://streamripper.sourceforge.net/"; 57 description = "Application that lets you record streaming mp3 to your hard drive"; 58 license = lib.licenses.gpl2; 59 mainProgram = "streamripper"; 60 }; 61}