git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #84069 from JustinLovinger/mpg123-conplay
commit2f3cee6250ac4c805fb003d9313cd6efc99d069a authorDoron Behar <doron.behar@gmail.com> dateThu 24 Sep 2020, 22:57 (6 years ago) parent5d4cc0ed0ca800
1 file changed+24−2
pkgs/applications/audio/mpg123/default.nix+24−2
pkgs/applications/audio/mpg123/default.nix+24−2
@@ -1,5 +1,9 @@
11{ stdenv
2−, fetchurl, alsaLib
2+, fetchurl
3+, makeWrapper
4+
5+, alsaLib
6+, perl
37}:
48
59stdenv.mkDerivation rec {
@@ -10,12 +14,30 @@ stdenv.mkDerivation rec {
1014 sha256 = "0vkcfdx0mqq6lmpczsmpa2jsb0s6dryx3i7gvr32i3w9b9w9ij9h";
1115 };
1216
13− buildInputs = stdenv.lib.optional (!stdenv.isDarwin) alsaLib;
17+ outputs = [ "out" "conplay" ];
18+
19+ nativeBuildInputs = [ makeWrapper ];
20+
21+ buildInputs = [ perl ] ++ stdenv.lib.optional (!stdenv.isDarwin) alsaLib;
1422
1523 configureFlags = stdenv.lib.optional
1624 (stdenv.hostPlatform ? mpg123)
1725 "--with-cpu=${stdenv.hostPlatform.mpg123.cpu}";
1826
27+ postInstall = ''
28+ mkdir -p $conplay/bin
29+ mv scripts/conplay $conplay/bin/
30+ '';
31+
32+ preFixup = ''
33+ patchShebangs $conplay/bin/conplay
34+ '';
35+
36+ postFixup = ''
37+ wrapProgram $conplay/bin/conplay \
38+ --prefix PATH : $out/bin
39+ '';
40+
1941 meta = {
2042 description = "Fast console MPEG Audio Player and decoder library";
2143 homepage = "http://mpg123.org";