aboutsummaryrefslogtreecommitdiff
path: root/perl/lib/Nix/Store.pm
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2011-10-10 18:12:40 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2011-10-10 18:12:40 +0000
commit73fe6871c479f7670f8c93b0cc9ef7bb1a851777 (patch)
tree41b4e3c7bc772bdd3e1df34fb929faa6e70268d0 /perl/lib/Nix/Store.pm
parent55481c44d4767ffde561c02b039717916e0536f6 (diff)
* Include the Nix Perl bindings in Nix itself. This will allow the
bindings to be used in Nix's own Perl scripts. The only downside is that Perl XS and Automake/libtool don't really like each other, so building is a bit tricky.
Diffstat (limited to 'perl/lib/Nix/Store.pm')
-rw-r--r--perl/lib/Nix/Store.pm23
1 files changed, 23 insertions, 0 deletions
diff --git a/perl/lib/Nix/Store.pm b/perl/lib/Nix/Store.pm
new file mode 100644
index 000000000..af69debed
--- /dev/null
+++ b/perl/lib/Nix/Store.pm
@@ -0,0 +1,23 @@
+package Nix::Store;
+
+use 5.010001;
+use strict;
+use warnings;
+
+require Exporter;
+
+our @ISA = qw(Exporter);
+
+our %EXPORT_TAGS = ( 'all' => [ qw( ) ] );
+
+our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
+
+our @EXPORT = qw( );
+
+our $VERSION = '0.15';
+
+require XSLoader;
+XSLoader::load('Nix::Store', $VERSION);
+
+1;
+__END__