Files
nixpkgs/pkgs/development/perl-modules/alien-sdl.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

31 lines
998 B
Diff

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" );