This bump nixpkgs input to 25.11 and fix the two warnings that were coming with the update: 1. `pkgs.system` => `pkgs.stdenv.hostPlatform.system` 2. `runCommandNoCC` => `runCommand` also: 1. remove cppnix 2.3 compat tests (cppnix 2.3 is officially dead now) 2. remove lowdown 1.3 compat tests (nixpkgs no longer carries it) Co-authored-by: Tom Hubrecht <github@mail.hubrecht.ovh> Change-Id: I78526b5d8992a6c63ecd7f0c7c1fa6346a6a6964
66 lines
1020 B
Nix
66 lines
1020 B
Nix
{
|
|
lib,
|
|
fileset,
|
|
stdenv,
|
|
perl,
|
|
perlPackages,
|
|
pkg-config,
|
|
nix,
|
|
curl,
|
|
bzip2,
|
|
xz,
|
|
boost,
|
|
darwin,
|
|
meson,
|
|
ninja,
|
|
capnproto,
|
|
}:
|
|
|
|
perl.pkgs.toPerlModule (
|
|
stdenv.mkDerivation {
|
|
name = "nix-perl-${nix.version}";
|
|
|
|
src = fileset.toSource {
|
|
root = ../.;
|
|
fileset = fileset.unions ([
|
|
../version.json
|
|
./lib
|
|
./meson.build
|
|
]);
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
meson
|
|
ninja
|
|
];
|
|
|
|
buildInputs = [
|
|
nix
|
|
curl
|
|
bzip2
|
|
xz
|
|
perl
|
|
boost
|
|
perlPackages.DBI
|
|
perlPackages.DBDSQLite
|
|
# for kj-async
|
|
capnproto
|
|
];
|
|
|
|
# Nixpkgs' Meson hook likes to set this to "plain".
|
|
mesonBuildType = "debugoptimized";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
postUnpack = "sourceRoot=$sourceRoot/perl";
|
|
|
|
passthru = { inherit perl; };
|
|
|
|
doInstallCheck = true;
|
|
installCheckPhase = ''
|
|
env PERL5LIB="$PERL5LIB:$out/${perl.libPrefix}" perl -e 'use Nix::Store'
|
|
'';
|
|
}
|
|
)
|