postgresqlPackages.pg_libversion: init at 2.0.0
This commit is contained in:
parent
7b8f84994c
commit
b7cdcb35cb
2 changed files with 49 additions and 0 deletions
|
@ -32,6 +32,8 @@ self: super: {
|
||||||
|
|
||||||
pg_ivm = super.callPackage ./pg_ivm.nix { };
|
pg_ivm = super.callPackage ./pg_ivm.nix { };
|
||||||
|
|
||||||
|
pg_libversion = super.callPackage ./pg_libversion.nix { };
|
||||||
|
|
||||||
pg_rational = super.callPackage ./pg_rational.nix { };
|
pg_rational = super.callPackage ./pg_rational.nix { };
|
||||||
|
|
||||||
pg_repack = super.callPackage ./pg_repack.nix { };
|
pg_repack = super.callPackage ./pg_repack.nix { };
|
||||||
|
|
47
pkgs/servers/sql/postgresql/ext/pg_libversion.nix
Normal file
47
pkgs/servers/sql/postgresql/ext/pg_libversion.nix
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pkg-config
|
||||||
|
, postgresql
|
||||||
|
, libversion
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "pg_libversion";
|
||||||
|
version = "2.0.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "repology";
|
||||||
|
repo = "postgresql-libversion";
|
||||||
|
rev = finalAttrs.version;
|
||||||
|
hash = "sha256-60HX/Y+6QIzqmDnjNpgO4GCbDhNfeek9myMWoYLdrAA=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
postgresql
|
||||||
|
libversion
|
||||||
|
];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
install -D -t $out/lib libversion${postgresql.dlSuffix}
|
||||||
|
install -D -t $out/share/postgresql/extension *.sql
|
||||||
|
install -D -t $out/share/postgresql/extension *.control
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "PostgreSQL extension with support for version string comparison";
|
||||||
|
homepage = "https://github.com/repology/postgresql-libversion";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [ maintainers.jopejoe1 ];
|
||||||
|
platforms = postgresql.meta.platforms;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in a new issue