mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 12:53:54 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
39 lines
855 B
Nix
39 lines
855 B
Nix
{ lib
|
||
, stdenv
|
||
, fetchurl
|
||
, libX11
|
||
, libXpm
|
||
}:
|
||
|
||
stdenv.mkDerivation rec {
|
||
pname = "xgalaga++";
|
||
version = "0.9";
|
||
src = fetchurl {
|
||
url = "https://marc.mongenet.ch/OSS/XGalaga/xgalaga++_${version}.tar.gz";
|
||
sha256 = "sha256-yNtLuYCMHLvQAVM7CDGPardrh3q27TE9l31qhUbMf8k=";
|
||
};
|
||
|
||
buildInputs = [
|
||
libX11
|
||
libXpm
|
||
];
|
||
|
||
buildPhase = ''
|
||
make all HIGH_SCORES_FILE=.xgalaga++.scores
|
||
'';
|
||
|
||
installPhase = ''
|
||
mkdir -p $out/bin $out/share/man
|
||
mv xgalaga++ $out/bin
|
||
mv xgalaga++.6x $out/share/man
|
||
'';
|
||
|
||
meta = with lib; {
|
||
homepage = "https://marc.mongenet.ch/OSS/XGalaga/";
|
||
description = "XGalaga++ is a classic single screen vertical shoot ’em up. It is inspired by XGalaga and reuses most of its sprites";
|
||
mainProgram = "xgalaga++";
|
||
license = licenses.gpl2Plus;
|
||
platforms = platforms.linux;
|
||
};
|
||
}
|