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