1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00
nixpkgs/pkgs/games/atanks/default.nix
Robert Helgesson b9f1140e4d atanks: use stdenv
This replaces use of builderDefsPackage (#4210).
2015-12-29 20:31:01 +01:00

27 lines
649 B
Nix

{ stdenv, fetchurl, allegro }:
stdenv.mkDerivation rec {
name = "atanks-${version}";
version = "6.2";
src = fetchurl {
url = "mirror://sourceforge/project/atanks/atanks/${name}/${name}.tar.gz";
sha256 = "1s1lb87ind0y9d6hmfaf1b9wks8q3hd6w5n9dibq75rxqmcfvlpy";
};
buildInputs = [ allegro ];
patchPhase = ''
substituteInPlace Makefile --replace /usr $out
'';
makeFlags = [ "PREFIX=$(out)/" "INSTALL=install" ];
meta = with stdenv.lib; {
description = "Atomic Tanks ballistics game";
homepage = http://atanks.sourceforge.net/;
maintainers = [ maintainers.raskin ];
platforms = platforms.linux;
};
}