Merge pull request #213314 from wegank/bugdom-bump

bugdom: 1.3.2 -> 1.3.3
This commit is contained in:
Weijia Wang 2023-01-29 09:06:00 +01:00 committed by GitHub
commit 1287abcb19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,13 +2,13 @@
stdenv.mkDerivation rec {
pname = "bugdom";
version = "1.3.2";
version = "1.3.3";
src = fetchFromGitHub {
owner = "jorio";
repo = pname;
rev = version;
sha256 = "sha256-pgms2mipW1zol35LVCuU5+7mN7CBiVGFvu1CJ3CrGU0=";
hash = "sha256-oe7xxvoL82YF+EoIJDK6AfN3PmpqeGRlIsbaGx8xGeM=";
fetchSubmodules = true;
};
@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
# Passing this in cmakeFlags doesn't work because the path is hard-coded for Darwin
substituteInPlace cmake/FindSDL2.cmake \
--replace 'set(SDL2_LIBRARIES' 'set(SDL2_LIBRARIES "${SDL2}/lib/libSDL2.dylib") #'
# Expects plutil, which we don't have
sed -i '/plutil/d' CMakeLists.txt
'';
buildInputs = [
@ -43,7 +45,7 @@ stdenv.mkDerivation rec {
'' + (if stdenv.hostPlatform.isDarwin then ''
mkdir -p $out/{bin,Applications}
mv {,$out/Applications/}Bugdom.app
ln -s $out/{Applications/Bugdom.app/Contents/MacOS,bin}/Bugdom
makeWrapper $out/{Applications/Bugdom.app/Contents/MacOS,bin}/Bugdom
'' else ''
mkdir -p $out/share/bugdom
mv Data $out/share/bugdom