mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
Use positive source filtering for the Perl bindings
This commit is contained in:
parent
47b3508665
commit
6654b4e3b4
2 changed files with 16 additions and 2 deletions
10
flake.nix
10
flake.nix
|
@ -477,7 +477,15 @@
|
||||||
passthru.perl-bindings = with final; perl.pkgs.toPerlModule (currentStdenv.mkDerivation {
|
passthru.perl-bindings = with final; perl.pkgs.toPerlModule (currentStdenv.mkDerivation {
|
||||||
name = "nix-perl-${version}";
|
name = "nix-perl-${version}";
|
||||||
|
|
||||||
src = self;
|
src = fileset.toSource {
|
||||||
|
root = ./.;
|
||||||
|
fileset = fileset.intersect baseFiles (fileset.unions [
|
||||||
|
./perl
|
||||||
|
./.version
|
||||||
|
./m4
|
||||||
|
./mk
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
|
||||||
nativeBuildInputs =
|
nativeBuildInputs =
|
||||||
[ buildPackages.autoconf-archive
|
[ buildPackages.autoconf-archive
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
makefiles = local.mk
|
makefiles = local.mk
|
||||||
|
|
||||||
GLOBAL_CXXFLAGS += -g -Wall -std=c++2a -I ../src
|
GLOBAL_CXXFLAGS += -g -Wall -std=c++2a
|
||||||
|
|
||||||
|
# A convenience for concurrent development of Nix and its Perl bindings.
|
||||||
|
# Not needed in a standalone build of the Perl bindings.
|
||||||
|
ifneq ("$(wildcard ../src)", "")
|
||||||
|
GLOBAL_CXXFLAGS += -I ../src
|
||||||
|
endif
|
||||||
|
|
||||||
-include Makefile.config
|
-include Makefile.config
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue