mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 09:02:46 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
35 lines
800 B
Nix
35 lines
800 B
Nix
{ lib, stdenv, fetchFromGitHub, scons, qt4, alsaLib }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "gambatte";
|
|
version = "2020-03-14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sinamas";
|
|
repo = "gambatte";
|
|
rev = "56e3371151b5ee86dcdcf4868324ebc6de220bc9";
|
|
sha256 = "0cc6zcvxpvi5hgcssb1zy0fkj9nk7n0d2xm88a4v05kpm5zw7sh2";
|
|
};
|
|
|
|
buildInputs = [ scons qt4 alsaLib ];
|
|
|
|
patches = [ ./fix-scons-paths.patch ];
|
|
|
|
buildPhase = ''
|
|
./build_qt.sh
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp gambatte_qt/bin/gambatte_qt $out/bin/
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Portable, open-source Game Boy Color emulator";
|
|
homepage = "https://github.com/sinamas/gambatte";
|
|
license = licenses.gpl2;
|
|
maintainers = [ maintainers.dezgeg ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|