mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 17:23:34 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, cmake, python3, bison, openssl, readline, bzip2, nixosTests }:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "monetdb";
|
|
version = "11.51.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://dev.monetdb.org/downloads/sources/archive/MonetDB-${finalAttrs.version}.tar.bz2";
|
|
hash = "sha256-ql6J4e62sL/g6s6cr2xMoxmlsLyovapaGtpcQIZ9tOU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ bison cmake python3 ];
|
|
buildInputs = [ openssl readline bzip2 ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace cmake/monetdb-packages.cmake --replace \
|
|
'get_os_release_info(LINUX_DISTRO LINUX_DISTRO_VERSION)' \
|
|
'set(LINUX_DISTRO "nixos")'
|
|
'';
|
|
|
|
postInstall = ''
|
|
rm $out/bin/monetdb_mtest.sh \
|
|
$out/bin/mktest.py \
|
|
$out/bin/sqlsample.php \
|
|
$out/bin/sqllogictest.py \
|
|
$out/bin/Mz.py \
|
|
$out/bin/Mtest.py \
|
|
$out/bin/sqlsample.pl \
|
|
$out/bin/malsample.pl \
|
|
$out/bin/Mconvert.py
|
|
'';
|
|
|
|
passthru.tests = { inherit (nixosTests) monetdb; };
|
|
|
|
meta = with lib; {
|
|
description = "Open source database system";
|
|
homepage = "https://www.monetdb.org/";
|
|
license = licenses.mpl20;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.StillerHarpo ];
|
|
};
|
|
})
|