3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/audio/libgme/default.nix
2021-01-21 19:11:02 -08:00

33 lines
939 B
Nix

{ lib, stdenv, fetchFromBitbucket, cmake, removeReferencesTo }:
let
version = "0.6.3";
in stdenv.mkDerivation {
pname = "libgme";
inherit version;
meta = with lib; {
description = "A collection of video game music chip emulators";
homepage = "https://bitbucket.org/mpyne/game-music-emu/overview";
license = licenses.lgpl21;
platforms = platforms.all;
maintainers = with maintainers; [ lheckemann ];
};
src = fetchFromBitbucket {
owner = "mpyne";
repo = "game-music-emu";
rev = version;
sha256 = "100ahb4n4pvgcry9xzlf2fr4j57n5h9x7pvyhhxys4dcy8axqqsy";
};
nativeBuildInputs = [ cmake removeReferencesTo ];
# It used to reference it, in the past, but thanks to the postFixup hook, now
# it doesn't.
disallowedReferences = [ stdenv.cc.cc ];
postFixup = lib.optionalString stdenv.isLinux ''
remove-references-to -t ${stdenv.cc.cc} "$(readlink -f $out/lib/libgme.so)"
'';
}