forked from mirrors/nixpkgs
Merge pull request #35482 from fgaz/kenta-cho
init bulletml and rrootage
This commit is contained in:
commit
6d1a45c7fb
72
pkgs/development/libraries/bulletml/default.nix
Normal file
72
pkgs/development/libraries/bulletml/default.nix
Normal file
|
@ -0,0 +1,72 @@
|
|||
{ stdenv, fetchpatch, fetchurl, bison, perl }:
|
||||
|
||||
let
|
||||
version = "0.0.6";
|
||||
debianRevision = "7";
|
||||
debianPatch = patchname: hash: fetchpatch {
|
||||
name = "${patchname}.patch";
|
||||
url = "https://sources.debian.org/data/main/b/bulletml/${version}-${debianRevision}/debian/patches/${patchname}.patch";
|
||||
sha256 = hash;
|
||||
};
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
name = "bulletml-${version}";
|
||||
|
||||
srcs = [
|
||||
(fetchurl {
|
||||
url = "http://shinh.skr.jp/libbulletml/libbulletml-${version}.tar.bz2";
|
||||
sha256 = "0yda0zgj2ydgkmby5676f5iiawabxadzh5p7bmy42998sp9g6dvw";
|
||||
})
|
||||
(fetchurl {
|
||||
url = "http://shinh.skr.jp/d/d_cpp.tar.bz2";
|
||||
sha256 = "1ly9qmbb8q9nyadmdap1gmxs3vkniqgchlv2hw7riansz4gg1agh";
|
||||
})
|
||||
];
|
||||
sourceRoot = "bulletml";
|
||||
postUnpack = "mv d_cpp bulletml/";
|
||||
|
||||
patches = [
|
||||
(debianPatch "fixes" "0cnr968n0h50fjmjijx7idsa2pg2pv5cwy6nvfbkx9z8w2zf0mkl")
|
||||
(debianPatch "bulletml_d" "03d1dgln3gkiw019pxn3gwgjkmvzisq8kp3n6fpn38yfwh4fp4hv")
|
||||
(debianPatch "d_cpp" "04g9c7c89w7cgrxw75mcbdhzxqmz1716li49mhl98znakchrlb9h")
|
||||
(debianPatch "warnings" "18px79x4drvm6dy6w6js53nzlyvha7qaxhz5a99b97pyk3qc7i9g")
|
||||
(debianPatch "makefile" "0z6yxanxmarx0s08gh12pk2wfqjk8g797wmfcqczdv1i6xc7nqzp")
|
||||
(debianPatch "includes" "1n11j5695hs9pspslf748w2cq5d78s6bwhyl476wp6gcq6jw20bw")
|
||||
];
|
||||
|
||||
makeFlags = [
|
||||
"-C src"
|
||||
];
|
||||
nativeBuildInputs = [ bison perl ];
|
||||
|
||||
installPhase = ''
|
||||
install -D -m 644 src/bulletml.d "$out"/include/d/bulletml.d
|
||||
install -d "$out"/include/bulletml/tinyxml
|
||||
install -m 644 src/*.h "$out"/include/bulletml
|
||||
install -m 644 src/tinyxml/tinyxml.h "$out"/include/bulletml/tinyxml
|
||||
cp -r src/boost $out/include/boost
|
||||
|
||||
install -d "$out"/lib
|
||||
install -m 644 src/libbulletml.{a,so}* "$out"/lib
|
||||
|
||||
install -D -m 644 README "$out"/share/doc/libbulletml/README.jp
|
||||
install -m 644 README.en "$out"/share/doc/libbulletml
|
||||
install -m 644 README.bulletml "$out"/share/doc/libbulletml
|
||||
install -D -m 644 README "$out"/share/licenses/libbulletml/README.jp
|
||||
install -m 644 README.en "$out"/share/licenses/libbulletml
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "C++ library to handle BulletML easily";
|
||||
longDescription = ''
|
||||
BulletML is the Bullet Markup Language. BulletML can describe the barrage
|
||||
of bullets in shooting games.
|
||||
'';
|
||||
homepage = "http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/index_e.html";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ fgaz ];
|
||||
# See https://github.com/NixOS/nixpkgs/pull/35482
|
||||
# for some attempts in getting it to build on darwin
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
80
pkgs/games/rrootage/default.nix
Normal file
80
pkgs/games/rrootage/default.nix
Normal file
|
@ -0,0 +1,80 @@
|
|||
{ stdenv, fetchpatch, fetchurl, SDL, SDL_mixer, bulletml }:
|
||||
|
||||
let
|
||||
version = "0.23a";
|
||||
debianRevision = "12";
|
||||
debianPatch = patchname: hash: fetchpatch {
|
||||
name = "${patchname}.patch";
|
||||
url = "https://sources.debian.org/data/main/r/rrootage/${version}-${debianRevision}/debian/patches/${patchname}.patch";
|
||||
sha256 = hash;
|
||||
};
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
name = "rrootage-${version}";
|
||||
src = fetchurl {
|
||||
url = "http://downloads.sourceforge.net/rrootage/rRootage-${version}.tar.gz";
|
||||
sha256 = "01zzg4ih3kmbhsn1p9zr7g8srv1d2dhrp8cdd86y9qq233idnkln";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(debianPatch
|
||||
"01_makefile"
|
||||
"0wgplznx9kgb82skwqplpydbpallgrby3w662h52wky5zl0pyijj")
|
||||
(debianPatch
|
||||
"02_data_dir"
|
||||
"12vw60s94by3f6k8pk45k555h4y7gzlqfds0a96nrrryammpgnq3")
|
||||
(debianPatch
|
||||
"03_texture_filename"
|
||||
"1qxkxy6821xvanacf25mi43wj8nf40c1qiyavhc8av798xprpkjh")
|
||||
(debianPatch
|
||||
"04_home"
|
||||
"0s15b0liv40jzjd9l4zsq688ky1yp9b1gmb1xhi3bih4y7q9awdz")
|
||||
(debianPatch
|
||||
"05_gcc"
|
||||
"06ihgbfrklabs7cb6216w1jjb9sglv86iagzhhmyydwyph4fb782")
|
||||
(debianPatch
|
||||
"06_rrootage_highres"
|
||||
"0ifjmh236yiv3g896nfwwydgcnq3njdb8ldah7s3jxp3xkpvwcga")
|
||||
(debianPatch
|
||||
"07_use_system_bulletml"
|
||||
"1sxsl1yzx3msvz8mf0jk1vnahqb1ahq9drm391idgh0afy77l6j7")
|
||||
(debianPatch
|
||||
"08_windowed_mode"
|
||||
"0knx4g445ngilsz4dvdkq69f5f8i2xv2fnmdmq037xd5rhfg0b23")
|
||||
(debianPatch
|
||||
"09_rootage_make_highres_default"
|
||||
"1zqz8s54rl8jmqmvdi9c3ayfcma6qkbfkx5vw0fzyn268wcs022p")
|
||||
(debianPatch
|
||||
"10_deg_out_of_range"
|
||||
"1wr76az4rlv1gaj9xdknzqcjazw6h8myqw6y3753q259hxbq4cah")
|
||||
];
|
||||
postPatch = ''
|
||||
substituteInPlace "src/screen.c" --replace "/usr/share/games/rrootage" "$out/share/games/rrootage"
|
||||
substituteInPlace "src/soundmanager.c" --replace "/usr/share/games/rrootage" "$out/share/games/rrootage"
|
||||
substituteInPlace "src/barragemanager.cc" --replace "/usr/share/games/rrootage" "$out/share/games/rrootage"
|
||||
'';
|
||||
|
||||
buildInputs = [ SDL SDL_mixer bulletml ];
|
||||
makeFlags = [ "-C src" "-f makefile.lin" ];
|
||||
hardeningDisable = [ "stackprotector" "fortify" ]; # buffer overflow without this
|
||||
|
||||
installPhase = ''
|
||||
install -d "$out"/share/games
|
||||
cp -r rr_share "$out"/share/games/rrootage
|
||||
install -D src/rrootage "$out"/bin/rrootage
|
||||
|
||||
install -D -m 644 readme.txt "$out"/share/licenses/rrootage/README.jp
|
||||
install -m 644 readme_e.txt "$out"/share/licenses/rrootage/README.en
|
||||
|
||||
install -D -m 644 readme.txt "$out"/share/doc/rrootage/README.jp
|
||||
install -m 644 readme_e.txt "$out"/share/doc/rrootage/README.en
|
||||
install -m 644 readme_linux "$out"/share/doc/rrootage/README
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Abstract shooter created by Kenta Cho";
|
||||
homepage = "http://rrootage.sourceforge.net/";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ fgaz ];
|
||||
};
|
||||
}
|
|
@ -8638,6 +8638,8 @@ with pkgs;
|
|||
|
||||
buddy = callPackage ../development/libraries/buddy { };
|
||||
|
||||
bulletml = callPackage ../development/libraries/bulletml { };
|
||||
|
||||
bwidget = callPackage ../development/libraries/bwidget { };
|
||||
|
||||
bzrtp = callPackage ../development/libraries/bzrtp { };
|
||||
|
@ -19420,6 +19422,8 @@ with pkgs;
|
|||
|
||||
rocksndiamonds = callPackage ../games/rocksndiamonds { };
|
||||
|
||||
rrootage = callPackage ../games/rrootage { };
|
||||
|
||||
saga = callPackage ../applications/gis/saga { };
|
||||
|
||||
samplv1 = callPackage ../applications/audio/samplv1 { };
|
||||
|
|
Loading…
Reference in a new issue