nixpkgs/pkgs/applications/audio/uade123/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

85 lines
2.0 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitLab
2022-05-12 14:05:58 +00:00
, python3
, pkg-config
, which
, makeWrapper
, libao
, bencodetools
, sox
, lame
, flac
, vorbis-tools
}:
2016-10-07 15:58:46 +00:00
2022-05-12 14:05:58 +00:00
stdenv.mkDerivation rec {
2019-08-13 21:52:01 +00:00
pname = "uade123";
2022-05-12 14:05:58 +00:00
version = "3.01";
src = fetchFromGitLab {
owner = "uade-music-player";
repo = "uade";
2022-05-12 14:05:58 +00:00
rev = "uade-${version}";
sha256 = "0fam3g8mlzrirrac3iwcwsz9jmsqwdy7lkwwdr2q4pkq9cpmh8m5";
2016-10-07 15:58:46 +00:00
};
postPatch = ''
2022-05-12 14:05:58 +00:00
patchShebangs configure
substituteInPlace configure \
--replace 'PYTHON_SETUP_ARGS=""' 'PYTHON_SETUP_ARGS="--prefix=$out"'
substituteInPlace src/frontends/mod2ogg/mod2ogg2.sh.in \
--replace '-e stat' '-n stat' \
--replace '/usr/local' "$out"
'';
nativeBuildInputs = [
pkg-config
which
makeWrapper
2022-05-12 14:05:58 +00:00
python3
];
buildInputs = [
libao
bencodetools
sox
lame
flac
vorbis-tools
2022-05-12 14:05:58 +00:00
(python3.withPackages (p: with p; [
pillow
tqdm
]))
];
configureFlags = [
"--bencode-tools-prefix=${bencodetools}"
];
2018-05-30 06:04:39 +00:00
enableParallelBuilding = true;
2018-05-30 06:04:39 +00:00
hardeningDisable = [ "format" ];
2016-10-07 15:58:46 +00:00
postInstall = ''
wrapProgram $out/bin/mod2ogg2.sh \
--prefix PATH : $out/bin:${lib.makeBinPath [ sox lame flac vorbis-tools ]}
# This is an old script, don't break expectations by renaming it
ln -s $out/bin/mod2ogg2{.sh,}
2022-05-12 14:05:58 +00:00
wrapProgram $out/bin/generate_amiga_oscilloscope_view \
--prefix PYTHONPATH : "$PYTHONPATH:$out/${python3.sitePackages}"
'';
meta = with lib; {
2016-10-07 15:58:46 +00:00
description = "Plays old Amiga tunes through UAE emulation and cloned m68k-assembler Eagleplayer API";
homepage = "https://zakalwe.fi/uade/";
# It's a mix of licenses. "GPL", Public Domain, "LGPL", GPL2+, BSD, LGPL21+ and source code with unknown licenses. E.g.
# - hippel-coso player is "[not] under any Open Source certified license"
# - infogrames player is disassembled from Andi Silvas player, unknown license
# Let's make it easy and flag the whole package as unfree.
license = licenses.unfree;
maintainers = with maintainers; [ OPNA2608 ];
platforms = platforms.unix;
2016-10-07 15:58:46 +00:00
};
}