forked from lix-project/lix
nix-perl -> nix.perl-bindings
This commit is contained in:
parent
204291f059
commit
21e2088c1b
38
flake.nix
38
flake.nix
|
@ -93,11 +93,11 @@
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
|
||||||
# A Nixpkgs overlay that overrides the 'nix' and 'nix-perl'
|
# A Nixpkgs overlay that overrides the 'nix' and
|
||||||
# packages.
|
# 'nix.perl-bindings' packages.
|
||||||
overlay = final: prev: {
|
overlay = final: prev: {
|
||||||
|
|
||||||
nix = with final; with commonDeps pkgs; releaseTools.nixBuild {
|
nix = with final; with commonDeps pkgs; (releaseTools.nixBuild {
|
||||||
name = "nix";
|
name = "nix";
|
||||||
src = self.hydraJobs.tarball;
|
src = self.hydraJobs.tarball;
|
||||||
|
|
||||||
|
@ -127,24 +127,26 @@
|
||||||
|
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
installCheckFlags = "sysconfdir=$(out)/etc";
|
installCheckFlags = "sysconfdir=$(out)/etc";
|
||||||
};
|
}) // {
|
||||||
|
|
||||||
nix-perl = with final; releaseTools.nixBuild {
|
perl-bindings = with final; releaseTools.nixBuild {
|
||||||
name = "nix-perl";
|
name = "nix-perl";
|
||||||
src = self.hydraJobs.tarball;
|
src = self.hydraJobs.tarball;
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ nix curl bzip2 xz pkgconfig pkgs.perl boost ]
|
[ nix curl bzip2 xz pkgconfig pkgs.perl boost ]
|
||||||
++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium;
|
++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium;
|
||||||
|
|
||||||
configureFlags = ''
|
configureFlags = ''
|
||||||
--with-dbi=${perlPackages.DBI}/${pkgs.perl.libPrefix}
|
--with-dbi=${perlPackages.DBI}/${pkgs.perl.libPrefix}
|
||||||
--with-dbd-sqlite=${perlPackages.DBDSQLite}/${pkgs.perl.libPrefix}
|
--with-dbd-sqlite=${perlPackages.DBDSQLite}/${pkgs.perl.libPrefix}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
postUnpack = "sourceRoot=$sourceRoot/perl";
|
||||||
|
};
|
||||||
|
|
||||||
postUnpack = "sourceRoot=$sourceRoot/perl";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -197,7 +199,7 @@
|
||||||
build = nixpkgs.lib.genAttrs systems (system: nixpkgsFor.${system}.nix);
|
build = nixpkgs.lib.genAttrs systems (system: nixpkgsFor.${system}.nix);
|
||||||
|
|
||||||
# Perl bindings for various platforms.
|
# Perl bindings for various platforms.
|
||||||
perlBindings = nixpkgs.lib.genAttrs systems (system: nixpkgsFor.${system}.nix-perl);
|
perlBindings = nixpkgs.lib.genAttrs systems (system: nixpkgsFor.${system}.nix.perl-bindings);
|
||||||
|
|
||||||
# Binary tarball for various platforms, containing a Nix store
|
# Binary tarball for various platforms, containing a Nix store
|
||||||
# with the closure of 'nix' package, and the second half of
|
# with the closure of 'nix' package, and the second half of
|
||||||
|
@ -429,7 +431,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = {
|
packages = {
|
||||||
inherit (nixpkgsFor.x86_64-linux) nix nix-perl;
|
inherit (nixpkgsFor.x86_64-linux) nix;
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultPackage = self.packages.nix;
|
defaultPackage = self.packages.nix;
|
||||||
|
|
Loading…
Reference in a new issue