mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
Merge staging-next into staging
This commit is contained in:
commit
1528aeb0b6
@ -8,16 +8,16 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "kubedog";
|
pname = "kubedog";
|
||||||
version = "0.10.0";
|
version = "0.11.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "werf";
|
owner = "werf";
|
||||||
repo = "kubedog";
|
repo = "kubedog";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-wbipB5hmf1J1t7lUBAhxbNASj7FSncghP4/VuKND7Kg=";
|
hash = "sha256-+mkzPOJPadHWyNq53AHX6kT5rr0vNjomWNfiAzeLeE4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-hjK4QvksT+K9zOLHWBwF7xlLGDIsp2jI1TlvhGLe0NU=";
|
vendorHash = "sha256-rHpP974zhx8kaw8sLGVGDe2CkodBK3mC8ssKIW0VG48=";
|
||||||
|
|
||||||
subPackages = [ "cmd/kubedog" ];
|
subPackages = [ "cmd/kubedog" ];
|
||||||
|
|
||||||
|
@ -62,13 +62,13 @@ let
|
|||||||
in
|
in
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "podman";
|
pname = "podman";
|
||||||
version = "4.8.1";
|
version = "4.8.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "containers";
|
owner = "containers";
|
||||||
repo = "podman";
|
repo = "podman";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-EDIgipbv8Z7nVV6VQ5IAmvHvvpLyGEDHMDnwhMUm/BQ=";
|
hash = "sha256-pRmSaquovfMG3+Aa13W+AW2s7MjK2V/mSje4CQZyURs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -40,8 +40,8 @@ import ./generic.nix { inherit lib stdenv emacs texinfo writeText gcc; } ({
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "melpa";
|
owner = "melpa";
|
||||||
repo = "package-build";
|
repo = "package-build";
|
||||||
rev = "c3c535e93d9dc92acd21ebc4b15016b5c3b90e7d";
|
rev = "c48aa078c01b4f07b804270c4583a0a58ffea1c0";
|
||||||
sha256 = "17z0wbqdd6fspbj43yq8biff6wfggk74xgnaf1xx6ynsp1i74is5";
|
sha256 = "sha256-MzPj375upIiYXdQR+wWXv3A1zMqbSrZlH0taLuxx/1M=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./package-build-dont-use-mtime.patch ];
|
patches = [ ./package-build-dont-use-mtime.patch ];
|
||||||
|
@ -11,22 +11,22 @@
|
|||||||
;; Allow installing package tarfiles larger than 10MB
|
;; Allow installing package tarfiles larger than 10MB
|
||||||
(setq large-file-warning-threshold nil)
|
(setq large-file-warning-threshold nil)
|
||||||
|
|
||||||
(defun melpa2nix-build-package-1 (rcp version commit)
|
(defun melpa2nix-build-package-1 (rcp)
|
||||||
(let ((source-dir (package-recipe--working-tree rcp)))
|
(let* ((default-directory (package-recipe--working-tree rcp)))
|
||||||
(unwind-protect
|
(unwind-protect
|
||||||
(let ((files (package-build-expand-files-spec rcp t)))
|
(let ((files (package-build-expand-files-spec rcp t)))
|
||||||
(cond
|
(unless files
|
||||||
((= (length files) 1)
|
(error "Unable to find files matching recipe patterns"))
|
||||||
(package-build--build-single-file-package
|
(if (> (length files) 1)
|
||||||
rcp version commit files source-dir))
|
(package-build--build-multi-file-package rcp files)
|
||||||
((> (length files) 1)
|
(package-build--build-single-file-package rcp files))))))
|
||||||
(package-build--build-multi-file-package
|
|
||||||
rcp version commit files source-dir))
|
|
||||||
(t (error "Unable to find files matching recipe patterns")))))))
|
|
||||||
|
|
||||||
(defun melpa2nix-build-package ()
|
(defun melpa2nix-build-package ()
|
||||||
(if (not noninteractive)
|
(unless noninteractive
|
||||||
(error "`melpa2nix-build-package' is to be used only with -batch"))
|
(error "`melpa2nix-build-package' is to be used only with -batch"))
|
||||||
(pcase command-line-args-left
|
(pcase command-line-args-left
|
||||||
(`(,package ,version ,commit)
|
(`(,package ,version ,commit)
|
||||||
(melpa2nix-build-package-1 (package-recipe-lookup package) version commit))))
|
(let ((recipe (package-recipe-lookup package)))
|
||||||
|
(setf (oref recipe commit) commit)
|
||||||
|
(setf (oref recipe version) version)
|
||||||
|
(melpa2nix-build-package-1 recipe)))))
|
||||||
|
@ -1,40 +1,21 @@
|
|||||||
diff --git a/package-build.el b/package-build.el
|
diff --git a/package-build.el b/package-build.el
|
||||||
index e572045..9eb0f82 100644
|
index 29cdb61..c19be1b 100644
|
||||||
--- a/package-build.el
|
--- a/package-build.el
|
||||||
+++ b/package-build.el
|
+++ b/package-build.el
|
||||||
@@ -415,7 +415,7 @@ (defun package-build--write-pkg-file (desc dir)
|
@@ -923,7 +923,6 @@ DIRECTORY is a temporary directory that contains the directory
|
||||||
(princ ";; Local Variables:\n;; no-byte-compile: t\n;; End:\n"
|
that is put in the tarball."
|
||||||
(current-buffer)))))
|
(let* ((name (oref rcp name))
|
||||||
|
(version (oref rcp version))
|
||||||
-(defun package-build--create-tar (name version directory mtime)
|
- (time (oref rcp time))
|
||||||
+(defun package-build--create-tar (name version directory)
|
(tar (expand-file-name (concat name "-" version ".tar")
|
||||||
"Create a tar file containing the contents of VERSION of package NAME.
|
package-build-archive-dir))
|
||||||
DIRECTORY is a temporary directory that contains the directory
|
(dir (concat name "-" version)))
|
||||||
that is put in the tarball. MTIME is used as the modification
|
@@ -939,7 +938,7 @@ that is put in the tarball."
|
||||||
@@ -434,7 +434,7 @@ (defun package-build--create-tar (name version directory mtime)
|
;; prevent a reproducible tarball as described at
|
||||||
;; prevent a reproducable tarball as described at
|
|
||||||
;; https://reproducible-builds.org/docs/archives.
|
;; https://reproducible-builds.org/docs/archives.
|
||||||
"--sort=name"
|
"--sort=name"
|
||||||
- (format "--mtime=@%d" mtime)
|
- (format "--mtime=@%d" time)
|
||||||
+ "--mtime=@0"
|
+ "--mtime=@0"
|
||||||
"--owner=0" "--group=0" "--numeric-owner"
|
"--owner=0" "--group=0" "--numeric-owner"
|
||||||
"--pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime"))
|
"--pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime"))
|
||||||
(when (and package-build-verbose noninteractive)
|
(when (and package-build-verbose noninteractive)
|
||||||
@@ -848,12 +848,11 @@ (defun package-build--build-multi-file-package (rcp version commit files source-
|
|
||||||
(package-build--desc-from-library
|
|
||||||
name version commit files 'tar)
|
|
||||||
(error "%s[-pkg].el matching package name is missing"
|
|
||||||
- name))))
|
|
||||||
- (mtime (package-build--get-commit-time rcp commit)))
|
|
||||||
+ name)))))
|
|
||||||
(package-build--copy-package-files files source-dir target)
|
|
||||||
(package-build--write-pkg-file desc target)
|
|
||||||
(package-build--generate-info-files files source-dir target)
|
|
||||||
- (package-build--create-tar name version tmp-dir mtime)
|
|
||||||
+ (package-build--create-tar name version tmp-dir)
|
|
||||||
(package-build--write-pkg-readme name files source-dir)
|
|
||||||
(package-build--write-archive-entry desc))
|
|
||||||
(delete-directory tmp-dir t nil))))
|
|
||||||
--
|
|
||||||
2.37.2
|
|
||||||
|
|
||||||
|
@ -6,11 +6,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "xerces-c";
|
pname = "xerces-c";
|
||||||
version = "3.2.4";
|
version = "3.2.5";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://apache/xerces/c/3/sources/${pname}-${version}.tar.gz";
|
url = "mirror://apache/xerces/c/3/sources/${pname}-${version}.tar.gz";
|
||||||
sha256 = "sha256-PY7Bx/lOOP7g5Mpa0eHZ2yPL86ELumJva0r6Le2v5as=";
|
sha256 = "sha256-VFz8zmxOdVIHvR8n4xkkHlDjfAwnJQ8RzaEWAY8e8PU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -10,14 +10,14 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "enlighten";
|
pname = "enlighten";
|
||||||
version = "1.12.3";
|
version = "1.12.4";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-0lf4lQi0ICwj+uxBRfDMe1dVgkgBfpF/Z0sYKE8J6qM=";
|
hash = "sha256-dfPZK0ng715FT8Gg853Aq49tmUbL5TTbPe0wECF9W18=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "graphene-django";
|
pname = "graphene-django";
|
||||||
version = "3.1.5";
|
version = "3.2.0";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
@ -31,7 +31,7 @@ buildPythonPackage rec {
|
|||||||
owner = "graphql-python";
|
owner = "graphql-python";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-1vl1Yj9MVBej5aFND8A63JMIog8aIW9SdwiOLIUwXxI=";
|
hash = "sha256-SOLY3NogovwQ5gr2gnvOcROWpbk9p134wI2f9FKr+5M=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -5,13 +5,13 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "mox";
|
pname = "mox";
|
||||||
version = "0.0.7";
|
version = "0.0.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mjl-";
|
owner = "mjl-";
|
||||||
repo = "mox";
|
repo = "mox";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-zFPgMVQQUnEKIgt35KxcRUxuBNSmTM8ZfAZvP22iKgg=";
|
hash = "sha256-mr07nn0fy19j/Yv46Rxzt2qlqDHfnSkt3bjQvMQ7zsE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# set the version during buildtime
|
# set the version during buildtime
|
||||||
|
@ -5,16 +5,16 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "weaviate";
|
pname = "weaviate";
|
||||||
version = "1.21.7";
|
version = "1.23.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "weaviate";
|
owner = "weaviate";
|
||||||
repo = "weaviate";
|
repo = "weaviate";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-fhBjKmWtbivntgBFmxfG4bQNUvCdP5uWtysOvsSqFuw=";
|
hash = "sha256-gm8PNNRnfnpLR5dS7nFfbvbZSSvTxbC4lUma2HI/+ZM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-/ylYXwgJKtkAIvYgSsl8MzBxuxp0Nco3ZR4ZBdmmS+w=";
|
vendorHash = "sha256-UEdGoXKq7ewNszahgcomjjuO2uzRZpiwkvvnXyFc9Og=";
|
||||||
|
|
||||||
subPackages = [ "cmd/weaviate-server" ];
|
subPackages = [ "cmd/weaviate-server" ];
|
||||||
|
|
||||||
|
76
pkgs/servers/sql/postgresql/ext/h3-pg.nix
Normal file
76
pkgs/servers/sql/postgresql/ext/h3-pg.nix
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, cmake
|
||||||
|
, fetchFromGitHub
|
||||||
|
, h3_4
|
||||||
|
, postgresql
|
||||||
|
, postgresqlTestHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "h3-pg";
|
||||||
|
version = "4.1.3";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "zachasme";
|
||||||
|
repo = "h3-pg";
|
||||||
|
rev = "v${finalAttrs.version}";
|
||||||
|
hash = "sha256-nkaDZ+JuMtsGUJVx70DD2coLrmc/T8/cNov7pfNF1Eg=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace CMakeLists.txt \
|
||||||
|
--replace "add_subdirectory(cmake/h3)" "include_directories(${lib.getDev h3_4}/include/h3)"
|
||||||
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
|
substituteInPlace cmake/AddPostgreSQLExtension.cmake \
|
||||||
|
--replace "INTERPROCEDURAL_OPTIMIZATION TRUE" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
h3_4
|
||||||
|
postgresql
|
||||||
|
];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -D -t $out/lib h3/h3.so
|
||||||
|
install -D -t $out/share/postgresql/extension h3/h3-*.sql h3/h3.control
|
||||||
|
install -D -t $out/lib h3_postgis/h3_postgis.so
|
||||||
|
install -D -t $out/share/postgresql/extension h3_postgis/h3_postgis-*.sql h3_postgis/h3_postgis.control
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru.tests.extension = stdenv.mkDerivation {
|
||||||
|
name = "h3-pg-test";
|
||||||
|
dontUnpack = true;
|
||||||
|
doCheck = true;
|
||||||
|
buildInputs = [ postgresqlTestHook ];
|
||||||
|
nativeCheckInputs = [ (postgresql.withPackages (ps: [ ps.h3-pg ps.postgis ])) ];
|
||||||
|
postgresqlTestUserOptions = "LOGIN SUPERUSER";
|
||||||
|
passAsFile = [ "sql" ];
|
||||||
|
sql = ''
|
||||||
|
CREATE EXTENSION h3;
|
||||||
|
CREATE EXTENSION h3_postgis CASCADE;
|
||||||
|
|
||||||
|
SELECT h3_lat_lng_to_cell(POINT('37.3615593,-122.0553238'), 5);
|
||||||
|
SELECT ST_NPoints(h3_cell_to_boundary_geometry('8a63a9a99047fff'));
|
||||||
|
'';
|
||||||
|
failureHook = "postgresqlStop";
|
||||||
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
psql -a -v ON_ERROR_STOP=1 -f $sqlPath
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
installPhase = "touch $out";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "PostgreSQL bindings for H3, a hierarchical hexagonal geospatial indexing system";
|
||||||
|
homepage = "https://github.com/zachasme/h3-pg";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ marsam ];
|
||||||
|
inherit (postgresql.meta) platforms;
|
||||||
|
};
|
||||||
|
})
|
@ -4,6 +4,8 @@ self: super: {
|
|||||||
|
|
||||||
apache_datasketches = super.callPackage ./ext/apache_datasketches.nix { };
|
apache_datasketches = super.callPackage ./ext/apache_datasketches.nix { };
|
||||||
|
|
||||||
|
h3-pg = super.callPackage ./ext/h3-pg.nix { };
|
||||||
|
|
||||||
hypopg = super.callPackage ./ext/hypopg.nix { };
|
hypopg = super.callPackage ./ext/hypopg.nix { };
|
||||||
|
|
||||||
jsonb_deep_sum = super.callPackage ./ext/jsonb_deep_sum.nix { };
|
jsonb_deep_sum = super.callPackage ./ext/jsonb_deep_sum.nix { };
|
||||||
|
@ -5,16 +5,16 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "rqlite";
|
pname = "rqlite";
|
||||||
version = "7.6.1";
|
version = "8.13.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "rqlite";
|
owner = "rqlite";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-WvEnMAz3dKG8xMlQzm7E0TmAgvsrRED50bb4Ved1+4U=";
|
sha256 = "sha256-YwwA9oqMJuHWaJ7zcSLJjbq3urIyUe6aZZS4kEeq7/8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-qirt5g7dcjAnceejrBnfhDpA4LSEj7eOuznSlfUBUgo=";
|
vendorHash = "sha256-qNI3SJdgaBi78Tvsd+RJ52vKZrbUQdEaEG/zTDKX0J4=";
|
||||||
|
|
||||||
subPackages = [ "cmd/rqlite" "cmd/rqlited" "cmd/rqbench" ];
|
subPackages = [ "cmd/rqlite" "cmd/rqlited" "cmd/rqbench" ];
|
||||||
|
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
pname = "mockoon";
|
pname = "mockoon";
|
||||||
version = "5.1.0";
|
version = "6.0.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/mockoon/mockoon/releases/download/v${version}/mockoon-${version}.AppImage";
|
url = "https://github.com/mockoon/mockoon/releases/download/v${version}/mockoon-${version}.AppImage";
|
||||||
hash = "sha256-FF2F16ulKerNnwgumaz2Theff7pRN4Up3FooCNW8kbg=";
|
hash = "sha256-aV+jM/XxXbjkStSZE4x8qtrtYX/yKbye4WjO9PiaNQ4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
appimageContents = appimageTools.extractType2 {
|
appimageContents = appimageTools.extractType2 {
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
pname = "requestly";
|
pname = "requestly";
|
||||||
version = "1.5.13";
|
version = "1.5.15";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/requestly/requestly-desktop-app/releases/download/v${version}/Requestly-${version}.AppImage";
|
url = "https://github.com/requestly/requestly-desktop-app/releases/download/v${version}/Requestly-${version}.AppImage";
|
||||||
hash = "sha256-DSOZBVBjIYO8BG3o7AUsH7h2KvSPlp9Lj9d3OwvBhfQ=";
|
hash = "sha256-GTc4VikXsyiEfgN6oY/YQPBqNLia4cFz1aYS65+SboI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
||||||
|
@ -5,16 +5,16 @@
|
|||||||
|
|
||||||
buildNpmPackage rec {
|
buildNpmPackage rec {
|
||||||
pname = "cdxgen";
|
pname = "cdxgen";
|
||||||
version = "6.0.14";
|
version = "9.10.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "AppThreat";
|
owner = "AppThreat";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-ddeX2EwA2g6wgfsNxf/5ZVsQOHlINGhxif/y6368wCw=";
|
sha256 = "sha256-FkOWkjf/TXjmSOMSTHvf/MhRtuIPFwGwMt1IUJdvKM0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
npmDepsHash = "sha256-CJ939wT9dKUzMDH2yHKgT056F2AVBevJlS/NhUBjx0E=";
|
npmDepsHash = "sha256-2DDLogGXT9G8tKJYxVtS7oa5szlaaQTs1kJcgq9GA7k=";
|
||||||
|
|
||||||
dontNpmBuild = true;
|
dontNpmBuild = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user