2021-06-28 23:13:55 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, installShellFiles, libpulseaudio, nas }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gbsplay";
|
|
|
|
version = "0.0.94";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mmitch";
|
|
|
|
repo = "gbsplay";
|
2021-06-28 23:13:55 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "VpaXbjotmc/Ref1geiKkBX9UhbPxfAGkFAdKVxP8Uxo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--without-test" # See mmitch/gbsplay#62
|
|
|
|
"--without-contrib"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
buildInputs = [ libpulseaudio nas ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --bash --name gbsplay contrib/gbsplay.bashcompletion
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-06-28 23:13:55 +00:00
|
|
|
description = "Gameboy sound player";
|
2022-10-21 18:38:19 +00:00
|
|
|
license = licenses.gpl1Plus;
|
2021-06-28 23:13:55 +00:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|