3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/bitsnbots/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

37 lines
892 B
Nix

{ stdenv, fetchurl, SDL, lua, mesa }:
stdenv.mkDerivation rec {
name = "bitsnbots-20111230";
src = fetchurl {
url = http://moikmellah.org/downloads/bitsnbots/bitsnbots.source.tgz;
sha256 = "1iiclm6bfpp2p6d692hpnw25xyr48ki1xkcxa7fvh5b7m1519gsp";
};
patchPhase = ''
sed -i '/^INCLUDE/d' Makefile.linux
'';
makefile = "Makefile.linux";
NIX_CFLAGS_COMPILE = "-I${SDL.dev}/include/SDL";
NIX_LDFLAGS = "-lGL";
installPhase = ''
mkdir -p $out/share/${name}
cp -R bitsnbots resource scripts README $out/share/${name}
mkdir -p $out/bin
ln -s $out/share/${name}/bitsnbots $out/bin
'';
buildInputs = [ SDL lua mesa ];
meta = {
description = "Simple puzzle game with moving robots";
homepage = http://moikmellah.org/blog/?page_id=19;
license = stdenv.lib.licenses.gpl3Plus;
platforms = with stdenv.lib.platforms; linux;
};
}