9 stdenv.mkDerivation (finalAttrs: {
13 src = fetchFromGitLab {
14 domain = "salsa.debian.org";
17 rev = "upstream/${finalAttrs.version}";
18 hash = "sha256-+/yxb19CJzyjQmT3O21pEmPR5YudmyCxWwo+W3uOB9Q=";
34 "CC=${stdenv.cc.targetPrefix}cc"
37 # Workaround build failure on -fno-common toolchains like upstream
38 # gcc-10. Otherwise build fails as:
39 # ld: /build/cc566Cj9.o:(.bss+0x0): multiple definition of `mpc123_file_reader'; ao.o:(.bss+0x40): first defined here
40 env.NIX_CFLAGS_COMPILE = "-fcommon";
42 # XXX: Should install locales too (though there's only 1 available).
47 cp -v mpc123 "$out/bin"
53 description = "A Musepack (.mpc) audio player";
54 homepage = "https://github.com/bucciarati/mpc123";
55 license = lib.licenses.gpl2Plus;
56 mainProgram = "mpc123";
58 platforms = lib.platforms.unix;