git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #126752 from axelf4/gbsplay-0.0.94

gbsplay: 2016-12-17 -> 0.0.94

commitd4acb6b9bf62478e845ef6219a7b2e47c2489445 authorSandro <sandro.jaeckel@gmail.com> dateMon 14 Jun 2021, 14:26 (5 years ago) parente8d07ac96e9be0
1 file changed+17−13
pkgs/applications/audio/gbsplay/default.nix+17−13
pkgs/applications/audio/gbsplay/default.nix+17−13
@@ -1,28 +1,32 @@
1−{ lib, stdenv, fetchFromGitHub, libpulseaudio }:
1+{ lib, stdenv, fetchFromGitHub, installShellFiles, libpulseaudio, nas }:
22
3−stdenv.mkDerivation {
4− name = "gbsplay-2016-12-17";
3+stdenv.mkDerivation rec {
4+ pname = "gbsplay";
5+ version = "0.0.94";
56
67 src = fetchFromGitHub {
78 owner = "mmitch";
89 repo = "gbsplay";
9− rev = "2c4486e17fd4f4cdea8c3fd79ae898c892616b70";
10− sha256 = "1214j67sr87zfhvym41cw2g823fmqh4hr451r7y1s9ql3jpjqhpz";
10+ rev = version;
11+ sha256 = "VpaXbjotmc/Ref1geiKkBX9UhbPxfAGkFAdKVxP8Uxo=";
1112 };
1213
13− buildInputs = [ libpulseaudio ];
14+ configureFlags = [
15+ "--without-test" # See mmitch/gbsplay#62
16+ "--without-contrib"
17+ ];
1418
15− configureFlags =
16− [ "--without-test" "--without-contrib" "--disable-devdsp"
17− "--enable-pulse" "--disable-alsa" "--disable-midi"
18− "--disable-nas" "--disable-dsound" "--disable-i18n" ];
19+ nativeBuildInputs = [ installShellFiles ];
20+ buildInputs = [ libpulseaudio nas ];
1921
20− makeFlags = [ "tests=" ];
22+ postInstall = ''
23+ installShellCompletion --bash --name gbsplay contrib/gbsplay.bashcompletion
24+ '';
2125
2226 meta = with lib; {
23− description = "gameboy sound player";
27+ description = "Gameboy sound player";
2428 license = licenses.gpl1;
25− platforms = ["i686-linux" "x86_64-linux"];
29+ platforms = [ "i686-linux" "x86_64-linux" ];
2630 maintainers = with maintainers; [ dasuxullebt ];
2731 };
2832}