nixpkgs/pkgs/applications/audio/gbsplay/default.nix

33 lines
787 B
Nix

{ lib, stdenv, fetchFromGitHub, installShellFiles, libpulseaudio, nas }:
stdenv.mkDerivation rec {
pname = "gbsplay";
version = "0.0.97";
src = fetchFromGitHub {
owner = "mmitch";
repo = "gbsplay";
rev = version;
sha256 = "sha256-O4t5OzXcrGoxzSXr0nzc01bItjcp1LvFeWnbdSUDwFU=";
};
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.gpl1Plus;
platforms = [ "i686-linux" "x86_64-linux" ];
maintainers = with maintainers; [ ];
};
}