Merge pull request #61464 from fgaz/sfxr/init

sfxr: init at 1.2.1
This commit is contained in:
Aaron Andersen 2019-05-19 09:10:53 -04:00 committed by GitHub
commit a0f36ab87d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,56 @@
{ stdenv
, fetchurl
, pkgconfig
, desktop-file-utils
, SDL
, gtk3
, gsettings-desktop-schemas
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "sfxr";
version = "1.2.1";
src = fetchurl {
url = "http://www.drpetter.se/files/sfxr-sdl-${version}.tar.gz";
sha256 = "0dfqgid6wzzyyhc0ha94prxax59wx79hqr25r6if6by9cj4vx4ya";
};
postPatch = ''
substituteInPlace Makefile --replace "usr/" ""
substituteInPlace sdlkit.h --replace \
"/usr/share/sfxr/sfxr.bmp" \
"$out/share/sfxr/sfxr.bmp"
substituteInPlace main.cpp \
--replace \
"/usr/share/sfxr/font.tga" \
"$out/share/sfxr/font.tga" \
--replace \
"/usr/share/sfxr/ld48.tga" \
"$out/share/sfxr/ld48.tga"
'';
nativeBuildInputs = [
pkgconfig
desktop-file-utils
];
buildInputs = [
SDL
gtk3
gsettings-desktop-schemas
wrapGAppsHook
];
makeFlags = [ "DESTDIR=$(out)" ];
meta = with stdenv.lib; {
homepage = "http://www.drpetter.se/project_sfxr.html";
description = "A videogame sound effect generator";
license = licenses.mit;
maintainers = with maintainers; [ fgaz ];
platforms = platforms.unix;
};
}

View file

@ -19875,6 +19875,8 @@ in
setbfree = callPackage ../applications/audio/setbfree { };
sfxr = callPackage ../applications/audio/sfxr { };
sfxr-qt = libsForQt5.callPackage ../applications/audio/sfxr-qt { };
shadowfox = callPackage ../tools/networking/shadowfox { };