diff --git a/pkgs/by-name/pa/pacman-game/package.nix b/pkgs/by-name/pa/pacman-game/package.nix new file mode 100644 index 000000000000..4a2c7c43f0b4 --- /dev/null +++ b/pkgs/by-name/pa/pacman-game/package.nix @@ -0,0 +1,34 @@ +{ + lib, + stdenv, + fetchFromGitHub, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "pacman-game"; + version = "0-unstable-2017-01-30"; + + src = fetchFromGitHub { + owner = "justinjo"; + repo = "pacman"; + rev = "974db44b655270e5a6532c309ffb0eb2d3962e99"; + hash = "sha256-2GwIv8XMbd8WZBaPp4tOblAzku49UilHmv6bG9A1y+4="; + }; + + installPhase = '' + runHook preInstall + + install -Dm755 pacman $out/bin/pacman + + runHook postInstall + ''; + + meta = { + description = "Command line pacman game"; + homepage = "https://github.com/justinjo/Pacman"; + license = lib.licenses.unlicense; + platforms = lib.platforms.darwin; + maintainers = with lib.maintainers; [ ethancedwards8 ]; + mainProgram = "pacman"; + }; +})