linuxsampler: refactor

emaryn 9dcd0464 47f1a584

+9 -7
+9 -7
pkgs/by-name/li/linuxsampler/package.nix
··· 16 16 lv2, 17 17 }: 18 18 19 - stdenv.mkDerivation rec { 19 + stdenv.mkDerivation (finalAttrs: { 20 20 pname = "linuxsampler"; 21 21 version = "2.3.1"; 22 22 23 23 src = fetchurl { 24 - url = "https://download.linuxsampler.org/packages/${pname}-${version}.tar.bz2"; 25 - sha256 = "sha256-T7quk5N5JBiPqIziQd0vaCr8tLDbwS6otz6egY01OTE="; 24 + url = "https://download.linuxsampler.org/packages/linuxsampler-${finalAttrs.version}.tar.bz2"; 25 + hash = "sha256-T7quk5N5JBiPqIziQd0vaCr8tLDbwS6otz6egY01OTE="; 26 26 }; 27 + 28 + env.HAVE_UNIX98 = "1"; 27 29 28 30 preConfigure = '' 29 31 make -f Makefile.svn ··· 49 51 50 52 enableParallelBuilding = true; 51 53 52 - meta = with lib; { 54 + meta = { 53 55 homepage = "http://www.linuxsampler.org"; 54 56 description = "Sampler backend"; 55 57 longDescription = '' ··· 63 65 have questions on the subject, that are not yet covered by the 64 66 FAQ, please contact us. 65 67 ''; 66 - license = licenses.unfree; 68 + license = lib.licenses.unfree; 67 69 maintainers = [ ]; 68 - platforms = platforms.linux; 70 + platforms = lib.platforms.linux; 69 71 }; 70 - } 72 + })