Skip to content

Commit

Permalink
aacgain: fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Feb 27, 2018
1 parent e41641d commit de7f766
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions pkgs/applications/audio/aacgain/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub }:
{ stdenv, fetchFromGitHub, fetchpatch }:

stdenv.mkDerivation {
name = "aacgain-1.9.0";
Expand All @@ -12,7 +12,19 @@ stdenv.mkDerivation {

hardeningDisable = [ "format" ];

postPatch = ''
(
cd mp4v2
patch -p0 < ${fetchpatch {
name = "fix_missing_ptr_deref.patch";
url = "https://aur.archlinux.org/cgit/aur.git/plain/fix_missing_ptr_deref.patch?h=aacgain-cvs&id=e1a19c920f57063e64bab75cb0d8624731f6e3d7";
sha256 = "1cq7r005nvmwdjb25z80grcam7jv6k57jnl2bh349mg3ajmslbq9";
}}
)
'';

configurePhase = ''
runHook preConfigure
cd mp4v2
./configure
Expand All @@ -21,9 +33,11 @@ stdenv.mkDerivation {
cd ..
./configure
runHook postConfigure
'';

buildPhase = ''
runHook preBuild
cd mp4v2
make libmp4v2.la
Expand All @@ -32,18 +46,18 @@ stdenv.mkDerivation {
cd ..
make
runHook postBuild
'';

installPhase = ''
strip -s aacgain/aacgain
install -vD aacgain/aacgain "$out/bin/aacgain"
install -D aacgain/aacgain "$out/bin/aacgain"
'';

meta = {
meta = with stdenv.lib; {
description = "ReplayGain for AAC files";
homepage = https://github.com/mulx/aacgain;
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.robbinch ];
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.robbinch ];
};
}

0 comments on commit de7f766

Please sign in to comment.