perlPackages.AlienSDL: init at 1.446

This commit is contained in:
Puck Meerburg 2019-10-23 12:09:13 +00:00
parent a261de2725
commit f04dd341b7
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,30 @@
diff --git a/inc/My/Builder/Unix.pm b/inc/My/Builder/Unix.pm
index 15291d5..5c5ab24 100644
--- a/inc/My/Builder/Unix.pm
+++ b/inc/My/Builder/Unix.pm
@@ -48,7 +48,7 @@ sub get_additional_libs {
sub can_build_binaries_from_sources {
my $self = shift;
- return 1; # yes we can
+ return 0; # no we can't
}
sub build_binaries {
diff --git a/t/004_get_header_version.t b/t/004_get_header_version.t
index d4146ff..27f53ea 100644
--- a/t/004_get_header_version.t
+++ b/t/004_get_header_version.t
@@ -1,8 +1,11 @@
# t/004_config.t
-use Test::More tests => 1;
+use Test::More;
use Alien::SDL;
+Test::More::plan( skip_all => 'NixOS doesn\'t have SDL headers in this location' );
+
+
like( Alien::SDL->get_header_version('SDL_version.h'), qr/([0-9]+\.)*[0-9]+/, "Testing SDL_version.h" );
#like( Alien::SDL->get_header_version('SDL_net.h'), qr/([0-9]+\.)*[0-9]+/, "Testing SDL_net.h" );
#like( Alien::SDL->get_header_version('SDL_image.h'), qr/([0-9]+\.)*[0-9]+/, "Testing SDL_image.h" );

View file

@ -210,6 +210,27 @@ let
};
};
AlienSDL = buildPerlModule {
pname = "Alien-SDL";
version = "1.446";
src = fetchurl {
url = "mirror://cpan/authors/id/F/FR/FROGGS/Alien-SDL-1.446.tar.gz";
sha256 = "c9aa2c9dc3c63d89773c7d7203f2a46d1b924d0c72d9f801af147a3dc8bc512a";
};
patches = [ ../development/perl-modules/alien-sdl.patch ];
installPhase = "./Build install --prefix $out";
SDL_INST_DIR = pkgs.SDL.dev;
buildInputs = [ ArchiveExtract ArchiveZip TextPatch pkgs.SDL ];
propagatedBuildInputs = [ CaptureTiny FileShareDir FileWhich ];
meta = {
description = "Get, Build and Use SDL libraries";
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
};
};
AlienTidyp = buildPerlModule {
pname = "Alien-Tidyp";
version = "1.4.7";