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

33 lines
948 B
Nix
Raw Normal View History

2020-06-03 15:52:00 +00:00
{ stdenv, fetchFromBitbucket, cmake, removeReferencesTo }:
2017-04-13 10:42:44 +00:00
let
2020-03-08 17:24:40 +00:00
version = "0.6.3";
2017-04-13 10:42:44 +00:00
in stdenv.mkDerivation {
2019-08-13 21:52:01 +00:00
pname = "libgme";
inherit version;
2017-04-13 10:42:44 +00:00
2017-04-13 10:43:06 +00: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 10:43:06 +00:00
license = licenses.lgpl21;
platforms = platforms.all;
maintainers = with maintainers; [ lheckemann ];
};
2017-04-13 10:42:44 +00:00
src = fetchFromBitbucket {
owner = "mpyne";
repo = "game-music-emu";
rev = version;
2020-03-08 17:24:40 +00:00
sha256 = "100ahb4n4pvgcry9xzlf2fr4j57n5h9x7pvyhhxys4dcy8axqqsy";
2017-04-13 10:42:44 +00:00
};
nativeBuildInputs = [ cmake removeReferencesTo ];
2020-06-03 15:52:00 +00:00
# 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 10:42:44 +00:00
}