Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 31 lines 849 B view raw
1{ lib, stdenv, fetchFromGitHub, postgresql }: 2 3stdenv.mkDerivation rec { 4 pname = "temporal_tables"; 5 version = "unstable-2021-02-20"; 6 7 buildInputs = [ postgresql ]; 8 9 src = fetchFromGitHub { 10 owner = "arkhipov"; 11 repo = pname; 12 rev = "3ce22da51f2549e8f8b8fbf2850c63eb3a2f1fbb"; 13 sha256 = "sha256-kmcl6vVHRZj2G5GijEyaZgDpZBDcdIUKzXv0rYYqUu4="; 14 }; 15 16 installPhase = '' 17 mkdir -p $out/{lib,share/postgresql/extension} 18 19 cp *.so $out/lib 20 cp *.sql $out/share/postgresql/extension 21 cp *.control $out/share/postgresql/extension 22 ''; 23 24 meta = with lib; { 25 description = "Temporal Tables PostgreSQL Extension "; 26 homepage = "https://github.com/mlt/temporal_tables"; 27 maintainers = with maintainers; [ ggpeti ]; 28 platforms = postgresql.meta.platforms; 29 license = licenses.bsd2; 30 }; 31}