about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-11-28 01:00:20 +0100
committerGitHub <noreply@github.com>2022-11-28 01:00:20 +0100
commit6e2d0bbd289629edae5e9e0333d18e47ce53b33a (patch)
tree9ceff4e6c880235a2d03d89f4b46609a0841237d
parentb4fcfe4144c638a2a82addd76084a4c9a138814c (diff)
parent451fb3f721131aff17c169addff1de4e55f2152f (diff)
downloadnixlib-6e2d0bbd289629edae5e9e0333d18e47ce53b33a.tar
nixlib-6e2d0bbd289629edae5e9e0333d18e47ce53b33a.tar.gz
nixlib-6e2d0bbd289629edae5e9e0333d18e47ce53b33a.tar.bz2
nixlib-6e2d0bbd289629edae5e9e0333d18e47ce53b33a.tar.lz
nixlib-6e2d0bbd289629edae5e9e0333d18e47ce53b33a.tar.xz
nixlib-6e2d0bbd289629edae5e9e0333d18e47ce53b33a.tar.zst
nixlib-6e2d0bbd289629edae5e9e0333d18e47ce53b33a.zip
Merge pull request #200065 from urandom2/aaxtomp3
Fixes https://github.com/NixOS/nixpkgs/issues/197312
-rw-r--r--pkgs/applications/audio/aaxtomp3/default.nix56
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/applications/audio/aaxtomp3/default.nix b/pkgs/applications/audio/aaxtomp3/default.nix
new file mode 100644
index 000000000000..358dfce0d4f0
--- /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 ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 15c318043a40..e24d1e9130df 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -27241,6 +27241,8 @@ with pkgs;
 
   aacgain = callPackage ../applications/audio/aacgain { };
 
+  aaxtomp3 = callPackage ../applications/audio/aaxtomp3 {};
+
   abcde = callPackage ../applications/audio/abcde {
     inherit (python3Packages) eyeD3;
   };