uade123: Add maintainer, 2.13 -> unstable-2021-05-21

Properly wraps mod2ogg2.sh script, patches incorrect switches &
paths.

OPNA2608 f9d0468f 696dd453

+62 -13
+62 -13
pkgs/applications/audio/uade123/default.nix
··· 1 - { lib, stdenv, fetchurl, which, libao, pkg-config }: 1 + { lib 2 + , stdenv 3 + , fetchFromGitLab 4 + , pkg-config 5 + , which 6 + , makeWrapper 7 + , libao 8 + , libbencodetools 9 + , sox 10 + , lame 11 + , flac 12 + , vorbis-tools 13 + }: 2 14 3 - let 4 - version = "2.13"; 5 - in stdenv.mkDerivation { 15 + stdenv.mkDerivation { 6 16 pname = "uade123"; 7 - inherit version; 8 - src = fetchurl { 9 - url = "http://zakalwe.fi/uade/uade2/uade-${version}.tar.bz2"; 10 - sha256 = "04nn5li7xy4g5ysyjjngmv5d3ibxppkbb86m10vrvadzxdd4w69v"; 17 + version = "unstable-2021-05-21"; 18 + 19 + src = fetchFromGitLab { 20 + owner = "uade-music-player"; 21 + repo = "uade"; 22 + rev = "7169a46e777d19957cd7ff8ac31843203e725ddc"; 23 + sha256 = "1dm7c924fy79y3wkb0qi71m1k6yw1x6j3whw7d0w4ka9hv6za03b"; 11 24 }; 12 - nativeBuildInputs = [ pkg-config which ]; 13 - buildInputs = [ libao ]; 25 + 26 + postPatch = '' 27 + patchShebangs . 28 + substituteInPlace src/frontends/mod2ogg/mod2ogg2.sh.in \ 29 + --replace '-e stat' '-n stat' \ 30 + --replace '/usr/local' "$out" 31 + ''; 32 + 33 + nativeBuildInputs = [ 34 + pkg-config 35 + which 36 + makeWrapper 37 + ]; 38 + 39 + buildInputs = [ 40 + libao 41 + libbencodetools 42 + sox 43 + lame 44 + flac 45 + vorbis-tools 46 + ]; 47 + 48 + configureFlags = [ 49 + "--bencode-tools-prefix=${libbencodetools}" 50 + ]; 14 51 15 52 enableParallelBuilding = true; 53 + 16 54 hardeningDisable = [ "format" ]; 17 55 56 + postInstall = '' 57 + wrapProgram $out/bin/mod2ogg2.sh \ 58 + --prefix PATH : $out/bin:${lib.makeBinPath [ sox lame flac vorbis-tools ]} 59 + # This is an old script, don't break expectations by renaming it 60 + ln -s $out/bin/mod2ogg2{.sh,} 61 + ''; 62 + 18 63 meta = with lib; { 19 64 description = "Plays old Amiga tunes through UAE emulation and cloned m68k-assembler Eagleplayer API"; 20 - homepage = "http://zakalwe.fi/uade/"; 21 - license = licenses.gpl2; 22 - maintainers = [ ]; 65 + homepage = "https://zakalwe.fi/uade/"; 66 + # It's a mix of licenses. "GPL", Public Domain, "LGPL", GPL2+, BSD, LGPL21+ and source code with unknown licenses. E.g. 67 + # - hippel-coso player is "[not] under any Open Source certified license" 68 + # - infogrames player is disassembled from Andi Silvas player, unknown license 69 + # Let's make it easy and flag the whole package as unfree. 70 + license = licenses.unfree; 71 + maintainers = with maintainers; [ OPNA2608 ]; 23 72 platforms = platforms.unix; 24 73 }; 25 74 }