1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00
nixpkgs/pkgs/games/instead-launcher/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

33 lines
785 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 ];
};
}