about summary refs log tree commit diff
path: root/pkgs/applications/audio
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-12-25 13:26:02 -0500
committerGitHub <noreply@github.com>2023-12-25 13:26:02 -0500
commit659d2348a54c38ce05f6d05f72488a5f88f27813 (patch)
treed5efc5f6c7c2dc99654b3600d99c426b85bf5a3b /pkgs/applications/audio
parentd066d3d5f5e3cb1deab16357140df9fc0e61026e (diff)
parentb9a6cbb48fba74e1ce0731b261841f446bd9e689 (diff)
Merge pull request #275840 from NixOS/backport-275682-to-release-23.11
[Backport release-23.11] aacgain: use submodules, fix build, update
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r--pkgs/applications/audio/aacgain/default.nix19
1 files changed, 6 insertions, 13 deletions
diff --git a/pkgs/applications/audio/aacgain/default.nix b/pkgs/applications/audio/aacgain/default.nix
index 4d45de86f3a1f..2bee147978159 100644
--- a/pkgs/applications/audio/aacgain/default.nix
+++ b/pkgs/applications/audio/aacgain/default.nix
@@ -5,27 +5,20 @@
 , autoconf
 , automake
 , libtool
-, faad2
-, mp4v2
 }:
 
-stdenv.mkDerivation rec {
+stdenv.mkDerivation {
   pname = "aacgain";
-  version = "2.0.0";
+  version = "2.0.0-unstable-2022-07-12";
 
   src = fetchFromGitHub {
     owner = "dgilman";
-    repo = pname;
-    rev = version;
-    sha256 = "sha256-9Y23Zh7q3oB4ha17Fpm1Hu2+wtQOA1llj6WDUAO2ARU=";
+    repo = "aacgain";
+    rev = "9f9ae95a20197d1072994dbd89672bba2904bdb5";
+    hash = "sha256-WqL9rKY4lQD7wQSZizoM3sHNzLIG0E9xZtjw8y7fgmE=";
+    fetchSubmodules = true;
   };
 
-  postPatch = ''
-    cp -R ${faad2.src}/* 3rdparty/faad2
-    cp -R ${mp4v2.src}/* 3rdparty/mp4v2
-    chmod -R +w 3rdparty
-  '';
-
   nativeBuildInputs = [
     cmake
     autoconf