depot/third_party/nixpkgs/pkgs/games/instead-launcher/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

32 lines
787 B
Nix

{ stdenv, fetchFromGitHub, instead, qmake4Hook, zlib }:
stdenv.mkDerivation rec {
pname = "instead-launcher";
version = "0.7.0";
src = fetchFromGitHub {
owner = "instead-hub";
repo = "instead-launcher";
rev = version;
sha256 = "1svy8i8anspway01pnz2cy69aad03anvkq04wrdfv1h9c34gbvb9";
};
patches = [ ./path.patch ];
postPatch = ''
substituteInPlace platform.cpp --subst-var-by instead ${instead}
'';
nativeBuildInputs = [ qmake4Hook ];
buildInputs = [ zlib ];
meta = with stdenv.lib; {
homepage = "https://instead.syscall.ru/wiki/en/instead-launcher";
description = "Install and play games from INSTEAD repository";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ orivej ];
};
}