
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build a08b3a4d19
.tar.gz \
--argstr baseRev 57b193d8ddeaf4f5219d2bae1d23b081e4906e57
result/bin/apply-formatting $NIXPKGS_PATH
60 lines
1.4 KiB
Nix
60 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
sparrow3d,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "hase";
|
|
version = "unstable-2020-10-06";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "theZiz";
|
|
repo = "hase";
|
|
rev = "31d6840cdf0c72fc459f10402dae7726096b2974";
|
|
hash = "sha256-d9So3E8nCQJ1/BdlwMkGbaFPT9mkX1VzlDGKp71ptEE=";
|
|
};
|
|
|
|
patches = [ ./prefer-dynamic.patch ];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
sparrow3d
|
|
zlib
|
|
];
|
|
|
|
buildPhase = ''
|
|
NIX_CFLAGS_COMPILE=$(pkg-config --cflags sparrow3d zlib)
|
|
|
|
# build and install are one step, and inseparable without patching
|
|
mkdir -p $out/{bin,share/applications,share/pixmaps}
|
|
./install.sh $out
|
|
'';
|
|
|
|
postFixup = ''
|
|
substituteInPlace "$out/share/applications/hase.desktop" \
|
|
--replace "Exec=hase" "Exec=$out/bin/hase"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Open-source artillery shooter";
|
|
mainProgram = "hase";
|
|
longDescription = ''
|
|
Hase is an open source gravity based artillery shooter. It is similar to
|
|
Worms, Hedgewars or artillery, but the gravity force and direction
|
|
depends on the mass nearby. It is optimized for mobile game consoles like
|
|
the GP2X, Open Pandora or GCW Zero.
|
|
'';
|
|
homepage = "http://ziz.gp2x.de/hase/";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ colinsane ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|