Merge branch 'master' into staging-next
This commit is contained in:
@@ -2,15 +2,15 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "cue";
|
||||
version = "0.0.3";
|
||||
version = "0.0.11";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://cue.googlesource.com/cue";
|
||||
rev = "v${version}";
|
||||
sha256 = "1abvvgicr64ssiprkircih2nrbcr1yqxf1qkl21kh0ww1xfp0rw7";
|
||||
sha256 = "146h3nxx72n3byxr854lnxj7m33ipbmg6j9dy6dlwvqpa7rndrmp";
|
||||
};
|
||||
|
||||
modSha256 = "0r5vbplcfq1rsp2jnixq6lfbpcv7grf0q38na76qy7pjb57zikb6";
|
||||
modSha256 = "1q0fjm34mbijjxg089v5330vc820nrvwdkhm02zi45rk2fpdgdqd";
|
||||
|
||||
subPackages = [ "cmd/cue" ];
|
||||
|
||||
|
||||
40
pkgs/development/tools/pgformatter/default.nix
Normal file
40
pkgs/development/tools/pgformatter/default.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{ stdenv, perlPackages, fetchFromGitHub, shortenPerlShebang }:
|
||||
|
||||
perlPackages.buildPerlPackage rec {
|
||||
pname = "pgformatter";
|
||||
version = "4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "darold";
|
||||
repo = "pgFormatter";
|
||||
rev = "v${version}";
|
||||
sha256 = "09p242s406mf469p66zp1jmp9pxcim2vk1v6qsxnrbzicchsn5i2";
|
||||
};
|
||||
|
||||
outputs = [ "out" ];
|
||||
|
||||
makeMakerFlags = [ "INSTALLDIRS=vendor" ];
|
||||
|
||||
# Makefile.PL only accepts DESTDIR and INSTALLDIRS, but we need to set more to make this work for NixOS.
|
||||
patchPhase = ''
|
||||
substituteInPlace pg_format \
|
||||
--replace "#!/usr/bin/env perl" "#!/usr/bin/perl"
|
||||
substituteInPlace Makefile.PL \
|
||||
--replace "'DESTDIR' => \$DESTDIR," "'DESTDIR' => '$out/'," \
|
||||
--replace "'INSTALLDIRS' => \$INSTALLDIRS," "'INSTALLDIRS' => \$INSTALLDIRS, 'INSTALLVENDORLIB' => 'bin/lib', 'INSTALLVENDORBIN' => 'bin', 'INSTALLVENDORSCRIPT' => 'bin', 'INSTALLVENDORMAN1DIR' => 'share/man/man1', 'INSTALLVENDORMAN3DIR' => 'share/man/man3',"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin shortenPerlShebang;
|
||||
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
shortenPerlShebang $out/bin/pg_format
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A PostgreSQL SQL syntax beautifier that can work as a console program or as a CGI";
|
||||
homepage = "https://github.com/darold/pgFormatter";
|
||||
maintainers = [ maintainers.marsam ];
|
||||
license = [ licenses.postgresql licenses.artistic2 ];
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
|
||||
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper , Security }:
|
||||
|
||||
with rustPlatform;
|
||||
|
||||
@@ -19,7 +19,8 @@ buildRustPackage rec {
|
||||
|
||||
cargoSha256 = "15894qr0kpp5kivx0p71zmmfhfh8in0ydkvfirxh2r12x0r2jhdd";
|
||||
|
||||
buildInputs = [ makeWrapper ];
|
||||
buildInputs = [ makeWrapper ]
|
||||
++ stdenv.lib.optional stdenv.isDarwin Security;
|
||||
|
||||
RUST_SRC_PATH = rustPlatform.rustcSrc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user