diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/audio/gbsplay/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/audio/gbsplay/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/audio/gbsplay/default.nix b/nixpkgs/pkgs/applications/audio/gbsplay/default.nix new file mode 100644 index 000000000000..3d280ca72abd --- /dev/null +++ b/nixpkgs/pkgs/applications/audio/gbsplay/default.nix @@ -0,0 +1,32 @@ +{ lib, stdenv, fetchFromGitHub, installShellFiles, libpulseaudio, nas }: + +stdenv.mkDerivation rec { + pname = "gbsplay"; + version = "0.0.94"; + + src = fetchFromGitHub { + owner = "mmitch"; + repo = "gbsplay"; + rev = version; + sha256 = "VpaXbjotmc/Ref1geiKkBX9UhbPxfAGkFAdKVxP8Uxo="; + }; + + configureFlags = [ + "--without-test" # See mmitch/gbsplay#62 + "--without-contrib" + ]; + + nativeBuildInputs = [ installShellFiles ]; + buildInputs = [ libpulseaudio nas ]; + + postInstall = '' + installShellCompletion --bash --name gbsplay contrib/gbsplay.bashcompletion + ''; + + meta = with lib; { + description = "Gameboy sound player"; + license = licenses.gpl1; + platforms = [ "i686-linux" "x86_64-linux" ]; + maintainers = with maintainers; [ dasuxullebt ]; + }; +} |