forked from mirrors/nixpkgs
96e9be097b
Add the "nas" output plugin. Remove configure flags since those should get detected automatically. Install bash completions. Format through nixpkgs-fmt.
33 lines
788 B
Nix
33 lines
788 B
Nix
{ 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 ];
|
|
};
|
|
}
|