mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 17:10:48 +00:00
Merge staging-next into staging
This commit is contained in:
commit
e88fb2d10c
|
@ -603,10 +603,10 @@ in {
|
|||
priority = 210;
|
||||
extraConfig = ''
|
||||
location = /.well-known/carddav {
|
||||
return 301 $scheme://$host/remote.php/dav;
|
||||
return 301 /remote.php/dav;
|
||||
}
|
||||
location = /.well-known/caldav {
|
||||
return 301 $scheme://$host/remote.php/dav;
|
||||
return 301 /remote.php/dav;
|
||||
}
|
||||
try_files $uri $uri/ =404;
|
||||
'';
|
||||
|
@ -614,7 +614,7 @@ in {
|
|||
"~ ^/(?:build|tests|config|lib|3rdparty|templates|data)(?:$|/)".extraConfig = ''
|
||||
return 404;
|
||||
'';
|
||||
"~ ^/(?:\\.|autotest|occ|issue|indie|db_|console)".extraConfig = ''
|
||||
"~ ^/(?:\\.(?!well-known)|autotest|occ|issue|indie|db_|console)".extraConfig = ''
|
||||
return 404;
|
||||
'';
|
||||
"~ ^\\/(?:index|remote|public|cron|core\\/ajax\\/update|status|ocs\\/v[12]|updater\\/.+|oc[ms]-provider\\/.+|.+\\/richdocumentscode\\/proxy)\\.php(?:$|\\/)" = {
|
||||
|
|
|
@ -19,13 +19,13 @@ let
|
|||
in
|
||||
buildGoModule rec {
|
||||
pname = "argo";
|
||||
version = "2.12.7";
|
||||
version = "2.12.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "argoproj";
|
||||
repo = "argo";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-bMbfFAI4oGZc7FOlU8LczbjAq1cYmJg5WTXkQKS9vgo=";
|
||||
sha256 = "sha256-JtT4SMoozfTWsQ4YsoQ8xLQ/vCO7hnVEp2umg+p7mRw=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-4XPMixVNj6PUKobNLwpsOBT7Zs/7pkhDtQacLIB5EfE=";
|
||||
|
|
|
@ -4,15 +4,20 @@
|
|||
, buildPackages
|
||||
, pkgsBuildTarget
|
||||
, fetchpatch
|
||||
, callPackage
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
inherit (lib) optionals optionalString;
|
||||
|
||||
go_bootstrap = callPackage ./bootstrap.nix {
|
||||
inherit Security;
|
||||
};
|
||||
|
||||
goBootstrap = runCommand "go-bootstrap" {} ''
|
||||
mkdir $out
|
||||
cp -rf ${buildPackages.go_bootstrap}/* $out/
|
||||
cp -rf ${go_bootstrap}/* $out/
|
||||
chmod -R u+w $out
|
||||
find $out -name "*.c" -delete
|
||||
cp -rf $out/bin/* $out/share/go/bin/
|
||||
|
|
|
@ -4,15 +4,20 @@
|
|||
, buildPackages
|
||||
, pkgsBuildTarget
|
||||
, fetchpatch
|
||||
, callPackage
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
inherit (lib) optionals optionalString;
|
||||
|
||||
go_bootstrap = callPackage ./bootstrap.nix {
|
||||
inherit Security;
|
||||
};
|
||||
|
||||
goBootstrap = runCommand "go-bootstrap" {} ''
|
||||
mkdir $out
|
||||
cp -rf ${buildPackages.go_bootstrap}/* $out/
|
||||
cp -rf ${go_bootstrap}/* $out/
|
||||
chmod -R u+w $out
|
||||
find $out -name "*.c" -delete
|
||||
cp -rf $out/bin/* $out/share/go/bin/
|
||||
|
|
|
@ -4,15 +4,20 @@
|
|||
, buildPackages
|
||||
, pkgsBuildTarget
|
||||
, fetchpatch
|
||||
, callPackage
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
inherit (lib) optionals optionalString;
|
||||
|
||||
go_bootstrap = callPackage ./bootstrap.nix {
|
||||
inherit Security;
|
||||
};
|
||||
|
||||
goBootstrap = runCommand "go-bootstrap" {} ''
|
||||
mkdir $out
|
||||
cp -rf ${buildPackages.go_bootstrap}/* $out/
|
||||
cp -rf ${go_bootstrap}/* $out/
|
||||
chmod -R u+w $out
|
||||
find $out -name "*.c" -delete
|
||||
cp -rf $out/bin/* $out/share/go/bin/
|
||||
|
|
17
pkgs/development/compilers/go/bootstrap.nix
Normal file
17
pkgs/development/compilers/go/bootstrap.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ stdenv, srcOnly, fetchurl, callPackage, Security }:
|
||||
|
||||
let
|
||||
go_bootstrap = if stdenv.isAarch64 then
|
||||
srcOnly {
|
||||
name = "go-1.8-linux-arm64-bootstrap";
|
||||
src = fetchurl {
|
||||
url = "https://cache.xor.us/go-1.8-linux-arm64-bootstrap.tar.xz";
|
||||
sha256 = "0sk6g03x9gbxk2k1djnrgy8rzw1zc5f6ssw0hbxk6kjr85lpmld6";
|
||||
};
|
||||
}
|
||||
else
|
||||
callPackage ./1.4.nix {
|
||||
inherit Security;
|
||||
};
|
||||
in
|
||||
go_bootstrap
|
|
@ -34,14 +34,16 @@
|
|||
, meta ? {}
|
||||
|
||||
# Not needed with buildGoModule
|
||||
, goPackagePath ? null
|
||||
, goPackagePath ? ""
|
||||
|
||||
, ... }@args':
|
||||
|
||||
with builtins;
|
||||
|
||||
assert goPackagePath != "" -> throw "`goPackagePath` is not needed with `buildGoModule`";
|
||||
|
||||
let
|
||||
args = removeAttrs args' [ "overrideModAttrs" "vendorSha256" "disabled" ];
|
||||
args = removeAttrs args' [ "overrideModAttrs" "vendorSha256" ];
|
||||
|
||||
go-modules = if vendorSha256 != null then stdenv.mkDerivation (let modArgs = {
|
||||
|
||||
|
@ -240,7 +242,5 @@ let
|
|||
[ lib.maintainers.kalbasit ];
|
||||
};
|
||||
});
|
||||
in if (goPackagePath != null) then
|
||||
throw "`goPackagePath` not needed with `buildGoModule`"
|
||||
else
|
||||
in
|
||||
package
|
||||
|
|
|
@ -25,9 +25,12 @@ stdenv.mkDerivation {
|
|||
installPhase = ''
|
||||
function fixRunPath {
|
||||
p=$(patchelf --print-rpath $1)
|
||||
patchelf --set-rpath "$p:${lib.makeLibraryPath [ stdenv.cc.cc ]}" $1
|
||||
patchelf --set-rpath "''${p:+$p:}${lib.makeLibraryPath [ stdenv.cc.cc ]}:\$ORIGIN/" $1
|
||||
}
|
||||
fixRunPath lib64/libcudnn.so
|
||||
|
||||
for lib in lib64/lib*.so; do
|
||||
fixRunPath $lib
|
||||
done
|
||||
|
||||
mkdir -p $out
|
||||
cp -a include $out/include
|
||||
|
@ -38,13 +41,7 @@ stdenv.mkDerivation {
|
|||
# See the explanation in addOpenGLRunpath.
|
||||
postFixup = ''
|
||||
for lib in $out/lib/lib*.so; do
|
||||
# patchelf fails on libcudnn_cnn_infer due to it being too big.
|
||||
# Most programs will still get the RPATH since they link to
|
||||
# other things.
|
||||
# (https://github.com/NixOS/patchelf/issues/222)
|
||||
if [ "$(basename $lib)" != libcudnn_cnn_infer.so ]; then
|
||||
addOpenGLRunpath $lib
|
||||
fi
|
||||
addOpenGLRunpath $lib
|
||||
done
|
||||
'';
|
||||
|
||||
|
|
|
@ -1,18 +1,16 @@
|
|||
{ lib, buildGoPackage, fetchFromGitHub }:
|
||||
|
||||
|
||||
buildGoPackage {
|
||||
buildGoPackage rec {
|
||||
pname = "yaml2json";
|
||||
version = "unstable-2017-05-03";
|
||||
version = "1.3";
|
||||
goPackagePath = "github.com/bronze1man/yaml2json";
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
rev = "ee8196e587313e98831c040c26262693d48c1a0c";
|
||||
owner = "bronze1man";
|
||||
repo = "yaml2json";
|
||||
sha256 = "16a2sqzbam5adbhfvilnpdabzwncs7kgpr0cn4gp09h2imzsprzw";
|
||||
rev = "v${version}";
|
||||
sha256 = "0bhjzl4qibiyvn56wcsm85f3vwnlzf4gywy2gq9mrnbrl629amq1";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
|
11
pkgs/development/tools/yaml2json/deps.nix
generated
11
pkgs/development/tools/yaml2json/deps.nix
generated
|
@ -1,11 +0,0 @@
|
|||
[
|
||||
{
|
||||
goPackagePath = "gopkg.in/yaml.v2";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://gopkg.in/yaml.v2";
|
||||
rev = "d670f9405373e636a5a2765eea47fac0c9bc91a4";
|
||||
sha256 = "1w1xid51n8v1mydn2m3vgggw8qgpd5a5sr62snsc77d99fpjsrs0";
|
||||
};
|
||||
}
|
||||
]
|
|
@ -5,16 +5,16 @@
|
|||
|
||||
buildGoModule rec {
|
||||
pname = "rtsp-simple-server";
|
||||
version = "0.14.0";
|
||||
version = "0.14.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aler9";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-9PjITPuCndz/EuFEt9docmWN93TwZQbnyHV161hUwS0=";
|
||||
sha256 = "sha256-+odGLuUU6KWcSukt/WpZnO1KMRTGY2fzPsXTL1xhlrk=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-6tp1hN1dRKm523IegMpsTO+/gktywqdNZflUbE4TPuU=";
|
||||
vendorSha256 = "sha256-P8NYnTItayuWLQpwl5D6I8K5MVm2Qh1hWl2c78n8CJo=";
|
||||
|
||||
# Tests need docker
|
||||
doCheck = false;
|
||||
|
|
|
@ -10143,19 +10143,6 @@ in
|
|||
|
||||
glslang = callPackage ../development/compilers/glslang { };
|
||||
|
||||
go_bootstrap = if stdenv.isAarch64 then
|
||||
srcOnly {
|
||||
name = "go-1.8-linux-arm64-bootstrap";
|
||||
src = fetchurl {
|
||||
url = "https://cache.xor.us/go-1.8-linux-arm64-bootstrap.tar.xz";
|
||||
sha256 = "0sk6g03x9gbxk2k1djnrgy8rzw1zc5f6ssw0hbxk6kjr85lpmld6";
|
||||
};
|
||||
}
|
||||
else
|
||||
callPackage ../development/compilers/go/1.4.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
go_1_14 = callPackage ../development/compilers/go/1.14.nix ({
|
||||
inherit (darwin.apple_sdk.frameworks) Security Foundation;
|
||||
} // lib.optionalAttrs stdenv.isAarch64 {
|
||||
|
@ -12039,8 +12026,7 @@ in
|
|||
cpplint = callPackage ../development/tools/analysis/cpplint { };
|
||||
|
||||
ccls = callPackage ../development/tools/misc/ccls {
|
||||
llvmPackages = llvmPackages_8;
|
||||
stdenv = llvmPackages_8.stdenv;
|
||||
llvmPackages = llvmPackages_latest;
|
||||
};
|
||||
|
||||
credstash = with python3Packages; toPythonApplication credstash;
|
||||
|
|
|
@ -21921,15 +21921,14 @@ let
|
|||
url = "mirror://cpan/authors/id/K/KU/KUBOTA/Text-WrapI18N-0.06.tar.gz";
|
||||
sha256 = "4bd29a17f0c2c792d12c1005b3c276f2ab0fae39c00859ae1741d7941846a488";
|
||||
};
|
||||
propagatedBuildInputs = [ pkgs.glibc TextCharWidth ];
|
||||
buildInputs = [ pkgs.glibcLocales ];
|
||||
propagatedBuildInputs = [ TextCharWidth ];
|
||||
preConfigure = ''
|
||||
substituteInPlace WrapI18N.pm --replace '/usr/bin/locale' '${pkgs.glibc.bin}/bin/locale'
|
||||
'';
|
||||
meta = {
|
||||
description = "Line wrapping module with support for multibyte, fullwidth, and combining characters and languages without whitespaces between words";
|
||||
license = with lib.licenses; [ artistic1 gpl2 ];
|
||||
# bogus use of glibc, pretty sure, think this is what we have glibcLocales for?
|
||||
broken = stdenv.hostPlatform.libc != "glibc";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue