Merge branch 'master' into staging
This commit is contained in:
23
pkgs/tools/admin/google-cloud-sdk/alpha__init__.py
Executable file
23
pkgs/tools/admin/google-cloud-sdk/alpha__init__.py
Executable file
@@ -0,0 +1,23 @@
|
||||
# Copyright 2013 Google Inc. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
"""Auth for the Google Cloud SDK.
|
||||
"""
|
||||
|
||||
from googlecloudsdk.calliope import base
|
||||
|
||||
|
||||
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
|
||||
class Alpha(base.Group):
|
||||
"""Alpha versions of gcloud commands."""
|
||||
23
pkgs/tools/admin/google-cloud-sdk/beta__init__.py
Executable file
23
pkgs/tools/admin/google-cloud-sdk/beta__init__.py
Executable file
@@ -0,0 +1,23 @@
|
||||
# Copyright 2013 Google Inc. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
"""Auth for the Google Cloud SDK.
|
||||
"""
|
||||
|
||||
from googlecloudsdk.calliope import base
|
||||
|
||||
|
||||
@base.ReleaseTracks(base.ReleaseTrack.BETA)
|
||||
class Beta(base.Group):
|
||||
"""Beta versions of gcloud commands."""
|
||||
@@ -26,6 +26,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "7aa6094d1f9c87f4c2c4a6bdad6a1113aac5e72ea673e659d9acbb059dfd037e";
|
||||
};
|
||||
|
||||
|
||||
buildInputs = [python27 makeWrapper];
|
||||
|
||||
phases = [ "installPhase" "fixupPhase" ];
|
||||
@@ -34,6 +35,12 @@ stdenv.mkDerivation rec {
|
||||
mkdir -p "$out"
|
||||
tar -xzf "$src" -C "$out" google-cloud-sdk
|
||||
|
||||
mkdir $out/google-cloud-sdk/lib/surface/alpha
|
||||
cp ${./alpha__init__.py} $out/google-cloud-sdk/lib/surface/alpha/__init__.py
|
||||
|
||||
mkdir $out/google-cloud-sdk/lib/surface/beta
|
||||
cp ${./beta__init__.py} $out/google-cloud-sdk/lib/surface/beta/__init__.py
|
||||
|
||||
# create wrappers with correct env
|
||||
for program in gcloud bq gsutil git-credential-gcloud.sh; do
|
||||
programPath="$out/google-cloud-sdk/bin/$program"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
, crypto ? false, libgcrypt, gnutls, pkgconfig}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ntfs-3g";
|
||||
pname = "ntfs3g";
|
||||
version = "2017.3.23";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "cpuminer-${version}";
|
||||
version = "2.4.5";
|
||||
version = "2.5.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/cpuminer/pooler-${name}.tar.gz";
|
||||
sha256 = "130ab6vcbm9azl9w8n97fzjnjbakm0k2n3wc1bcgy5y5c8s0220h";
|
||||
sha256 = "1xalrfrk5hvh1jh9kbqhib2an82ypd46vl9glaxhz3rbjld7c5pa";
|
||||
};
|
||||
|
||||
patchPhase = if stdenv.cc.isClang then "${perl}/bin/perl ./nomacro.pl" else null;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{ mkDerivation, fetchurl, lib
|
||||
, extra-cmake-modules, kdoctools, wrapGAppsHook
|
||||
, kconfig, kinit, kpmcore
|
||||
, eject, libatasmart }:
|
||||
, kcrash, eject, libatasmart }:
|
||||
|
||||
let
|
||||
pname = "partitionmanager";
|
||||
@@ -22,5 +22,5 @@ in mkDerivation rec {
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ];
|
||||
# refer to kpmcore for the use of eject
|
||||
buildInputs = [ eject libatasmart ];
|
||||
propagatedBuildInputs = [ kconfig kinit kpmcore ];
|
||||
propagatedBuildInputs = [ kconfig kcrash kinit kpmcore ];
|
||||
}
|
||||
|
||||
@@ -14,13 +14,13 @@ let
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "tlp-${version}";
|
||||
version = "0.9";
|
||||
version = "1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linrunner";
|
||||
repo = "TLP";
|
||||
rev = "${version}";
|
||||
sha256 = "1gwi0h9klhdvqfqvmn297l1vyhj4g9dqvf50lcbswry02mvnd2vn";
|
||||
sha256 = "0gq1y1qnzwyv7cw32g4ymlfssi2ayrbnd04y4l242k6n41d05bij";
|
||||
};
|
||||
|
||||
makeFlags = [ "DESTDIR=$(out)"
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ stdenv, fetchurl, jre }:
|
||||
|
||||
let
|
||||
version = "1.7.06";
|
||||
version = "1.7.23";
|
||||
jar = fetchurl {
|
||||
name = "burpsuite.jar";
|
||||
url = "https://portswigger.net/Burp/Releases/Download?productId=100&version=${version}&type=Jar";
|
||||
sha256 = "13x3x0la2jmm7zr66mvczzlmsy1parfibnl9s4iwi1nls4ikv7kl";
|
||||
sha256 = "1y83qisn9pkn88vphpli7h8nacv8jv3sq0h04zbri25nfkgvl4an";
|
||||
};
|
||||
launcher = ''
|
||||
#!${stdenv.shell}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "iperf-3.1.7";
|
||||
name = "iperf-3.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://downloads.es.net/pub/iperf/${name}.tar.gz";
|
||||
sha256 = "0kvk8d0a3dcxc8fisyprbn01y8akxj4sx8ld5dh508p9dx077vx4";
|
||||
sha256 = "07cwrl9q5pmfjlh6ilpk7hm25lpkcaf917zhpmfq918lhrpv61zj";
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
|
||||
@@ -14,6 +14,7 @@ stdenv.mkDerivation rec {
|
||||
url = "http://ftp.de.debian.org/debian/pool/main/u/ucspi-tcp/ucspi-tcp_0.88-3.diff.gz";
|
||||
sha256 = "0mzmhz8hjkrs0khmkzs5i0s1kgmgaqz07h493bd5jj5fm5njxln6";
|
||||
})
|
||||
./remove-setuid.patch
|
||||
];
|
||||
|
||||
# Apply Debian patches
|
||||
|
||||
15
pkgs/tools/networking/ucspi-tcp/remove-setuid.patch
Normal file
15
pkgs/tools/networking/ucspi-tcp/remove-setuid.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
diff --git a/hier.c b/hier.c
|
||||
index 5663ada..1d73b84 100644
|
||||
--- a/hier.c
|
||||
+++ b/hier.c
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
void hier()
|
||||
{
|
||||
- h(auto_home,-1,-1,02755);
|
||||
- d(auto_home,"bin",-1,-1,02755);
|
||||
+ h(auto_home,-1,-1,0755);
|
||||
+ d(auto_home,"bin",-1,-1,0755);
|
||||
|
||||
c(auto_home,"bin","tcpserver",-1,-1,0755);
|
||||
c(auto_home,"bin","tcprules",-1,-1,0755);
|
||||
@@ -9,11 +9,11 @@ let
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "afl-${version}";
|
||||
version = "2.43b";
|
||||
version = "2.44b";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://lcamtuf.coredump.cx/afl/releases/${name}.tgz";
|
||||
sha256 = "1jv2y9b53k3p8hngm78ikakhcf4vv3yyz6ip17jhg5gsis29gdwx";
|
||||
sha256 = "0wvx4ibr5hhav9mld1gncdvfzb4iky85gam3x8a43ispjddyya6m";
|
||||
};
|
||||
|
||||
# Note: libcgroup isn't needed for building, just for the afl-cgroup
|
||||
|
||||
@@ -1,8 +1,22 @@
|
||||
{ stdenv, fetchurl, gtk2, atk, gdk_pixbuf, pango, makeWrapper }:
|
||||
{ stdenv, fetchurl, gtk2, atk, gdk_pixbuf, glib, pango, fontconfig, zlib, xorg, upx, patchelf }:
|
||||
|
||||
let
|
||||
dynlibPath = stdenv.lib.makeLibraryPath
|
||||
[ gtk2 atk gdk_pixbuf pango ];
|
||||
([ gtk2 atk gdk_pixbuf glib pango fontconfig zlib stdenv.cc.cc.lib ]
|
||||
++ (with xorg; [
|
||||
libX11
|
||||
libXext
|
||||
libXrender
|
||||
libXrandr
|
||||
libSM
|
||||
libXfixes
|
||||
libXdamage
|
||||
libXcursor
|
||||
libXinerama
|
||||
libXi
|
||||
libXcomposite
|
||||
libXxf86vm
|
||||
]));
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "jd-gui-${version}";
|
||||
@@ -13,14 +27,18 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0jrvzs2s836yvqi41c7fq0gfiwf187qg765b9r1il2bjc0mb3dqv";
|
||||
};
|
||||
|
||||
buildInputs = [ makeWrapper ];
|
||||
nativeBuildInputs = [ upx patchelf ];
|
||||
|
||||
phases = "unpackPhase installPhase";
|
||||
unpackPhase = "tar xf ${src}";
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin && mv jd-gui $out/bin
|
||||
wrapProgram $out/bin/jd-gui \
|
||||
--prefix LD_LIBRARY_PATH ":" "${dynlibPath}"
|
||||
mkdir -p $out/bin
|
||||
upx -d jd-gui -o $out/bin/jd-gui
|
||||
|
||||
patchelf \
|
||||
--set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \
|
||||
--set-rpath ${dynlibPath} \
|
||||
$out/bin/jd-gui
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
mkDerivation, lib, fetchgit, fetchpatch,
|
||||
extra-cmake-modules, kdoctools, wrapGAppsHook,
|
||||
kconfig, kinit, kparts
|
||||
kcrash, kconfig, kinit, kparts
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
@@ -32,7 +32,7 @@ mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ];
|
||||
|
||||
propagatedBuildInputs = [ kconfig kinit kparts ];
|
||||
propagatedBuildInputs = [ kconfig kcrash kinit kparts ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = http://kdiff3.sourceforge.net/;
|
||||
|
||||
Reference in New Issue
Block a user