diff options
author | Colin Arnott <colin@urandom.co.uk> | 2022-11-07 18:16:42 +0000 |
---|---|---|
committer | Colin Arnott <colin@urandom.co.uk> | 2022-11-26 02:58:00 +0000 |
commit | 451fb3f721131aff17c169addff1de4e55f2152f (patch) | |
tree | 47aec24cc00506d1e3588753405c44fed4b87c5d /pkgs/applications/audio/aaxtomp3 | |
parent | f9fcccaaf024f186569539f0b8b8fab725933a26 (diff) |
aaxtomp3: init at 1.3
Fixes #197312
Diffstat (limited to 'pkgs/applications/audio/aaxtomp3')
-rw-r--r-- | pkgs/applications/audio/aaxtomp3/default.nix | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/pkgs/applications/audio/aaxtomp3/default.nix b/pkgs/applications/audio/aaxtomp3/default.nix new file mode 100644 index 0000000000000..358dfce0d4f05 --- /dev/null +++ b/pkgs/applications/audio/aaxtomp3/default.nix @@ -0,0 +1,56 @@ +{ coreutils +, fetchFromGitHub +, ffmpeg +, findutils +, gnugrep +, gnused +, jq +, lame +, lib +, makeWrapper +, mediainfo +, mp4v2 +, stdenv +}: +let + runtimeInputs = [ + coreutils + ffmpeg + findutils + gnugrep + gnused + jq + lame + mediainfo + mp4v2 + ]; +in +stdenv.mkDerivation rec { + pname = "aaxtomp3"; + version = "1.3"; + + src = fetchFromGitHub { + owner = "krumpetpirate"; + repo = pname; + rev = "v${version}"; + hash = "sha256-7a9ZVvobWH/gPxa3cFiPL+vlu8h1Dxtcq0trm3HzlQg="; + }; + + dontBuild = false; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + install -Dm755 AAXtoMP3 $out/bin/aaxtomp3 + wrapProgram $out/bin/aaxtomp3 --prefix PATH : ${lib.makeBinPath runtimeInputs} + install -Dm755 interactiveAAXtoMP3 $out/bin/interactiveaaxtomp3 + wrapProgram $out/bin/interactiveaaxtomp3 --prefix PATH : ${lib.makeBinPath runtimeInputs} + ''; + + meta = with lib; { + description = "Convert Audible's .aax filetype to MP3, FLAC, M4A, or OPUS"; + homepage = "https://krumpetpirate.github.io/AAXtoMP3"; + license = licenses.wtfpl; + maintainers = with maintainers; [ urandom ]; + }; +} |