From 74e6aa7de608f1ea62a67dc9dfb7f09db6b64633 Mon Sep 17 00:00:00 2001 From: Christoph-Simon Senjak Date: Wed, 25 Jan 2017 21:59:27 +0100 Subject: [PATCH 1/2] gbsplay: init at version 2016-12-17 --- pkgs/applications/audio/gbsplay/default.nix | 36 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/applications/audio/gbsplay/default.nix diff --git a/pkgs/applications/audio/gbsplay/default.nix b/pkgs/applications/audio/gbsplay/default.nix new file mode 100644 index 00000000000..b49be827d83 --- /dev/null +++ b/pkgs/applications/audio/gbsplay/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchFromGitHub, libpulseaudio }: + +stdenv.mkDerivation { + name = "gbsplay-2016-12-17"; + + src = fetchFromGitHub { + owner = "mmitch"; + repo = "gbsplay"; + rev = "2c4486e17fd4f4cdea8c3fd79ae898c892616b70"; + sha256 = "1214j67sr87zfhvym41cw2g823fmqh4hr451r7y1s9ql3jpjqhpz"; + }; + + buildInputs = [ libpulseaudio ]; + + #CFLAGS = "-I${libpulseaudio}/include"; + #LDFLAGS = "-L${libpulseaudio}/lib"; + +# preConfigure = '' +# sed -i "s:check_include pulse/simple.h:check_include pulse/simple.h ${libpulseaudio}/include:" ./configure; +# ''; + + configureFlagsArray = [ + "--without-test" "--without-contrib" "--disable-devdsp" + "--enable-pulse" "--disable-alsa" "--disable-midi" "--disable-nas" + "--disable-dsound" "--disable-i18n" + ]; + + makeFlagsArray = [ "tests=" ]; + + + meta = with stdenv.lib; { + description = "gameboy sound player"; + license = licenses.gpl1; + maintainers = with maintainers; [ dasuxullebt ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b0189355fdc..23bd19396eb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -862,6 +862,8 @@ with pkgs; fzy = callPackage ../tools/misc/fzy { }; + gbsplay = callPackage ../applications/audio/gbsplay { }; + gdrivefs = python27Packages.gdrivefs; go-dependency-manager = callPackage ../development/tools/gdm { }; From c84c72063109de7f183c62a743ef6b8491141387 Mon Sep 17 00:00:00 2001 From: Christoph-Simon Senjak Date: Thu, 26 Jan 2017 00:41:54 +0100 Subject: [PATCH 2/2] fixing gbsplay/default.nix --- pkgs/applications/audio/gbsplay/default.nix | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/pkgs/applications/audio/gbsplay/default.nix b/pkgs/applications/audio/gbsplay/default.nix index b49be827d83..9ff9b8dc114 100644 --- a/pkgs/applications/audio/gbsplay/default.nix +++ b/pkgs/applications/audio/gbsplay/default.nix @@ -11,26 +11,18 @@ stdenv.mkDerivation { }; buildInputs = [ libpulseaudio ]; - - #CFLAGS = "-I${libpulseaudio}/include"; - #LDFLAGS = "-L${libpulseaudio}/lib"; - -# preConfigure = '' -# sed -i "s:check_include pulse/simple.h:check_include pulse/simple.h ${libpulseaudio}/include:" ./configure; -# ''; - configureFlagsArray = [ - "--without-test" "--without-contrib" "--disable-devdsp" - "--enable-pulse" "--disable-alsa" "--disable-midi" "--disable-nas" - "--disable-dsound" "--disable-i18n" - ]; - - makeFlagsArray = [ "tests=" ]; + configureFlagsArray = + [ "--without-test" "--without-contrib" "--disable-devdsp" + "--enable-pulse" "--disable-alsa" "--disable-midi" + "--disable-nas" "--disable-dsound" "--disable-i18n" ]; + makeFlagsArray = [ "tests=" ]; meta = with stdenv.lib; { description = "gameboy sound player"; license = licenses.gpl1; + platforms = ["i686-linux" "x86_64-linux"]; maintainers = with maintainers; [ dasuxullebt ]; }; }