nixpkgs/pkgs/development/libraries/audio/libgme/default.nix

35 lines
970 B
Nix
Raw Normal View History

2020-06-03 16:52:00 +01:00
{ stdenv, fetchFromBitbucket, cmake, removeReferencesTo }:
2017-04-13 11:42:44 +01:00
let
2020-03-08 17:24:40 +00:00
version = "0.6.3";
2017-04-13 11:42:44 +01:00
in stdenv.mkDerivation {
2019-08-13 22:52:01 +01:00
pname = "libgme";
inherit version;
2017-04-13 11:42:44 +01:00
2017-04-13 11:43:06 +01:00
meta = with stdenv.lib; {
description = "A collection of video game music chip emulators";
2020-03-08 17:24:40 +00:00
homepage = "https://bitbucket.org/mpyne/game-music-emu/overview";
2017-04-13 11:43:06 +01:00
license = licenses.lgpl21;
platforms = platforms.all;
maintainers = with maintainers; [ lheckemann ];
};
2017-04-13 11:42:44 +01:00
src = fetchFromBitbucket {
owner = "mpyne";
repo = "game-music-emu";
rev = version;
2020-03-08 17:24:40 +00:00
sha256 = "100ahb4n4pvgcry9xzlf2fr4j57n5h9x7pvyhhxys4dcy8axqqsy";
2017-04-13 11:42:44 +01:00
};
buildInputs = [ cmake ];
2020-06-03 16:52:00 +01:00
nativeBuildInputs = [ removeReferencesTo ];
# It used to reference it, in the past, but thanks to the postFixup hook, now
# it doesn't.
disallowedReferences = [ stdenv.cc.cc ];
postFixup = stdenv.lib.optionalString stdenv.isLinux ''
remove-references-to -t ${stdenv.cc.cc} "$(readlink -f $out/lib/libgme.so)"
'';
2017-04-13 11:42:44 +01:00
}