Merge master into staging-next
This commit is contained in:
commit
92db8d3c26
16 changed files with 909 additions and 1167 deletions
|
@ -104,7 +104,7 @@ let
|
||||||
mkHash = with builtins; val: substring 0 20 (hashString "sha256" val);
|
mkHash = with builtins; val: substring 0 20 (hashString "sha256" val);
|
||||||
certDir = mkHash hashData;
|
certDir = mkHash hashData;
|
||||||
domainHash = mkHash "${concatStringsSep " " extraDomains} ${data.domain}";
|
domainHash = mkHash "${concatStringsSep " " extraDomains} ${data.domain}";
|
||||||
othersHash = mkHash "${toString acmeServer} ${data.keyType}";
|
othersHash = mkHash "${toString acmeServer} ${data.keyType} ${data.email}";
|
||||||
accountDir = "/var/lib/acme/.lego/accounts/" + othersHash;
|
accountDir = "/var/lib/acme/.lego/accounts/" + othersHash;
|
||||||
|
|
||||||
protocolOpts = if useDns then (
|
protocolOpts = if useDns then (
|
||||||
|
@ -253,7 +253,8 @@ let
|
||||||
echo '${domainHash}' > domainhash.txt
|
echo '${domainHash}' > domainhash.txt
|
||||||
|
|
||||||
# Check if we can renew
|
# Check if we can renew
|
||||||
if [ -e 'certificates/${keyName}.key' -a -e 'certificates/${keyName}.crt' ]; then
|
# Certificates and account credentials must exist
|
||||||
|
if [ -e 'certificates/${keyName}.key' -a -e 'certificates/${keyName}.crt' -a "$(ls -1 accounts)" ]; then
|
||||||
|
|
||||||
# When domains are updated, there's no need to do a full
|
# When domains are updated, there's no need to do a full
|
||||||
# Lego run, but it's likely renew won't work if days is too low.
|
# Lego run, but it's likely renew won't work if days is too low.
|
||||||
|
|
|
@ -263,4 +263,28 @@ chmod 400 /var/lib/secrets/certs.secret
|
||||||
ones.
|
ones.
|
||||||
</para>
|
</para>
|
||||||
</section>
|
</section>
|
||||||
|
<section xml:id="module-security-acme-fix-jws">
|
||||||
|
<title>Fixing JWS Verification error</title>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
It is possible that your account credentials file may become corrupt and need
|
||||||
|
to be regnerated. In this scenario lego will produce the error <literal>JWS verification error</literal>.
|
||||||
|
The solution is to simply delete the associated accounts file and
|
||||||
|
re-run the affected service(s).
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<programlisting>
|
||||||
|
# Find the accounts folder for the certificate
|
||||||
|
systemctl cat acme-example.com.service | grep -Po 'accounts/[^:]*'
|
||||||
|
export accountdir="$(!!)"
|
||||||
|
# Move this folder to some place else
|
||||||
|
mv /var/lib/acme/.lego/$accountdir{,.bak}
|
||||||
|
# Recreate the folder using systemd-tmpfiles
|
||||||
|
systemd-tmpfiles --create
|
||||||
|
# Get a new account and reissue certificates
|
||||||
|
# Note: Do this for all certs that share the same account email address
|
||||||
|
systemctl start acme-example.com.service
|
||||||
|
</programlisting>
|
||||||
|
|
||||||
|
</section>
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
|
@ -108,7 +108,7 @@ in {
|
||||||
ProtectKernelModules = true;
|
ProtectKernelModules = true;
|
||||||
ProtectKernelLogs = true;
|
ProtectKernelLogs = true;
|
||||||
ProtectControlGroups = true;
|
ProtectControlGroups = true;
|
||||||
RestrictAddressFamilies = [ "AF_UNIX" "AF_INET" "AF_INET6" ];
|
RestrictAddressFamilies = [ "AF_UNIX" "AF_INET" "AF_INET6" "AF_NETLINK" ];
|
||||||
RestrictNamespaces = true;
|
RestrictNamespaces = true;
|
||||||
LockPersonality = true;
|
LockPersonality = true;
|
||||||
MemoryDenyWriteExecute = true;
|
MemoryDenyWriteExecute = true;
|
||||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -118,8 +118,9 @@ buildStdenv.mkDerivation ({
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./env_var_for_system_dir.patch
|
./env_var_for_system_dir.patch
|
||||||
./no-buildconfig-ffx76.patch
|
|
||||||
] ++
|
] ++
|
||||||
|
lib.optional (lib.versionOlder ffversion "83") ./no-buildconfig-ffx76.patch ++
|
||||||
|
lib.optional (lib.versionAtLeast ffversion "84") ./no-buildconfig-ffx84.patch ++
|
||||||
|
|
||||||
# there are two flavors of pipewire support
|
# there are two flavors of pipewire support
|
||||||
# The patches for the ESR release and the patches for the current stable
|
# The patches for the ESR release and the patches for the current stable
|
||||||
|
@ -141,13 +142,7 @@ buildStdenv.mkDerivation ({
|
||||||
url = "https://src.fedoraproject.org/rpms/firefox/raw/${fedora_revision}/f/${spec.name}";
|
url = "https://src.fedoraproject.org/rpms/firefox/raw/${fedora_revision}/f/${spec.name}";
|
||||||
};
|
};
|
||||||
in map mkPWPatch [
|
in map mkPWPatch [
|
||||||
{ name = "pw1.patch"; sha256 = "1a7zvngn3k7dg886zmi38kmrsdzh2rrr46aw59bhr1gfmq8wlwn0"; }
|
|
||||||
{ name = "pw2.patch"; sha256 = "17irg3yb2mchcy0z0nr4k65mwvkps467cvvczr10fnm06lhkhw1l"; }
|
|
||||||
{ name = "pw3.patch"; sha256 = "12p6ql5ff2lfzlni6xkpz63h2xr6n2a9zf8hhjl99fj56rif6706"; }
|
|
||||||
{ name = "pw4.patch"; sha256 = "0rvysc92rdm98s47w5lvbnrklrf7d299k3918qnldniyb4b9p4mg"; }
|
|
||||||
{ name = "pw5.patch"; sha256 = "0kk2yxq4qkfwc4px6m08jrn18a7a7dhrngfiaw84r9ga6sgn0z00"; }
|
|
||||||
{ name = "pw6.patch"; sha256 = "12lhx9wjpw0ahbfmw07wsx76bb223mr453q9cg8cq951vyskch3s"; }
|
{ name = "pw6.patch"; sha256 = "12lhx9wjpw0ahbfmw07wsx76bb223mr453q9cg8cq951vyskch3s"; }
|
||||||
{ name = "pw7.patch"; sha256 = "0afw7cfd48vn62zb9y5kd2l26fg44s3aq1kyg3gm4q3rj34xidf6"; }
|
|
||||||
])
|
])
|
||||||
|
|
||||||
++ patches;
|
++ patches;
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
diff --git a/docshell/base/nsAboutRedirector.cpp b/docshell/base/nsAboutRedirector.cpp
|
||||||
|
index 10ac77b..0125d9b 100644
|
||||||
|
--- a/docshell/base/nsAboutRedirector.cpp
|
||||||
|
+++ b/docshell/base/nsAboutRedirector.cpp
|
||||||
|
@@ -63,8 +63,6 @@ static const RedirEntry kRedirMap[] = {
|
||||||
|
{"about", "chrome://global/content/aboutAbout.html", 0},
|
||||||
|
{"addons", "chrome://mozapps/content/extensions/extensions.xhtml",
|
||||||
|
nsIAboutModule::ALLOW_SCRIPT},
|
||||||
|
- {"buildconfig", "chrome://global/content/buildconfig.html",
|
||||||
|
- nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT},
|
||||||
|
{"checkerboard", "chrome://global/content/aboutCheckerboard.html",
|
||||||
|
nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
|
||||||
|
nsIAboutModule::ALLOW_SCRIPT},
|
||||||
|
diff --git a/toolkit/content/jar.mn b/toolkit/content/jar.mn
|
||||||
|
index c83b3e2..d543140 100644
|
||||||
|
--- a/toolkit/content/jar.mn
|
||||||
|
+++ b/toolkit/content/jar.mn
|
||||||
|
@@ -40,7 +40,6 @@ toolkit.jar:
|
||||||
|
content/global/plugins.css
|
||||||
|
content/global/plugins.js
|
||||||
|
content/global/browser-child.js
|
||||||
|
-* content/global/buildconfig.html
|
||||||
|
content/global/buildconfig.css
|
||||||
|
content/global/contentAreaUtils.js
|
||||||
|
content/global/datepicker.xhtml
|
|
@ -7,23 +7,12 @@ in
|
||||||
rec {
|
rec {
|
||||||
firefox = common rec {
|
firefox = common rec {
|
||||||
pname = "firefox";
|
pname = "firefox";
|
||||||
ffversion = "83.0";
|
ffversion = "84.0";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://mozilla/firefox/releases/${ffversion}/source/firefox-${ffversion}.source.tar.xz";
|
url = "mirror://mozilla/firefox/releases/${ffversion}/source/firefox-${ffversion}.source.tar.xz";
|
||||||
sha512 = "3va5a9471677jfzkhqp8xkba45n0bcpphbabhqbcbnps6p85m3y98pl5jy9q7cpq3a6gxc4ax7bp90yz2nfvfq7i64iz397xpprri2a";
|
sha512 = "37d5hc2wv1b6il4flgsw5g7ihw2jx3qrrmgm4cjg3lmk91q8k7908sy79z24na6529y7jxpj4m05l6yb850wnnwjhyc4c3vxqbldnba";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
|
||||||
# Fix compilation on aarch64 with newer rust version
|
|
||||||
# See https://bugzilla.mozilla.org/show_bug.cgi?id=1677690
|
|
||||||
# and https://bugzilla.redhat.com/show_bug.cgi?id=1897675
|
|
||||||
(fetchpatch {
|
|
||||||
name = "aarch64-simd-bgz-1677690.patch";
|
|
||||||
url = "https://github.com/mozilla/gecko-dev/commit/71597faac0fde4f608a60dd610d0cefac4972cc3.patch";
|
|
||||||
sha256 = "1f61nsgbv2c2ylgjs7wdahxrrlgc19gjy5nzs870zr1g832ybwin";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A web browser built from Firefox source tree";
|
description = "A web browser built from Firefox source tree";
|
||||||
homepage = "http://www.mozilla.com/en-US/firefox/";
|
homepage = "http://www.mozilla.com/en-US/firefox/";
|
||||||
|
|
|
@ -1,27 +1,28 @@
|
||||||
{ stdenv, lib, buildPackages, buildGoPackage, fetchFromGitHub, installShellFiles }:
|
{ stdenv, lib, buildPackages, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||||
|
let isCrossBuild = stdenv.hostPlatform != stdenv.buildPlatform;
|
||||||
|
|
||||||
let isCrossBuild = stdenv.hostPlatform != stdenv.buildPlatform; in
|
in
|
||||||
|
buildGoModule rec {
|
||||||
buildGoPackage rec {
|
|
||||||
pname = "stern";
|
pname = "stern";
|
||||||
version = "1.11.0";
|
version = "1.13.1";
|
||||||
|
|
||||||
goPackagePath = "github.com/wercker/stern";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "wercker";
|
owner = "stern";
|
||||||
repo = "stern";
|
repo = "stern";
|
||||||
rev = version;
|
rev = "v${version}";
|
||||||
sha256 = "0xndlq0ks8flzx6rdd4lnkxpkbvdy9sj1jwys5yj7p989ls8by3n";
|
sha256 = "0fj6a52wb0jv5bz2j2wq3ljnlxnsj9bg3kbzgkz0vh0b63zyn782";
|
||||||
};
|
};
|
||||||
|
|
||||||
deleteVendor = true;
|
vendorSha256 = "14nrdaaby74bjbk777hr82p0ybzk3spc59lbrjn9z0q3hc0p4vaf";
|
||||||
goDeps = ./deps.nix;
|
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
buildFlagsArray =
|
||||||
|
[ "-ldflags=-s -w -X github.com/stern/stern/cmd.version=${version}" ];
|
||||||
|
|
||||||
postInstall =
|
postInstall =
|
||||||
let stern = if isCrossBuild then buildPackages.stern else "$out"; in
|
let stern = if isCrossBuild then buildPackages.stern else "$out";
|
||||||
|
in
|
||||||
''
|
''
|
||||||
for shell in bash zsh; do
|
for shell in bash zsh; do
|
||||||
${stern}/bin/stern --completion $shell > stern.$shell
|
${stern}/bin/stern --completion $shell > stern.$shell
|
||||||
|
@ -30,10 +31,10 @@ buildGoPackage rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Multi pod and container log tailing for Kubernetes";
|
description = "Multi pod and container log tailing for Kubernetes";
|
||||||
homepage = "https://github.com/wercker/stern";
|
homepage = "https://github.com/stern/stern";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ mbode ];
|
maintainers = with maintainers; [ mbode preisschild ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
336
pkgs/applications/networking/cluster/stern/deps.nix
generated
336
pkgs/applications/networking/cluster/stern/deps.nix
generated
|
@ -1,336 +0,0 @@
|
||||||
# file generated from Gopkg.lock using dep2nix (https://github.com/nixcloud/dep2nix)
|
|
||||||
[
|
|
||||||
{
|
|
||||||
goPackagePath = "cloud.google.com/go";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://code.googlesource.com/gocloud";
|
|
||||||
rev = "dfffe386c33fb24c34ee501e5723df5b97b98514";
|
|
||||||
sha256 = "1g681yxz4mmzapzpzxfaz1nhcr1w526793yapfsnxlbs2skap3fy";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/Azure/go-autorest";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/Azure/go-autorest";
|
|
||||||
rev = "1ff28809256a84bb6966640ff3d0371af82ccba4";
|
|
||||||
sha256 = "0sxvj2j1833bqwxvhq3wq3jgq73rnb81pnzvl0x3y1m0hzpaf2zv";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/dgrijalva/jwt-go";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/dgrijalva/jwt-go";
|
|
||||||
rev = "06ea1031745cb8b3dab3f6a236daf2b0aa468b7e";
|
|
||||||
sha256 = "08m27vlms74pfy5z79w67f9lk9zkx6a9jd68k3c4msxy75ry36mp";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/fatih/color";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/fatih/color";
|
|
||||||
rev = "2d684516a8861da43017284349b7e303e809ac21";
|
|
||||||
sha256 = "1fcfmz4wji3gqmmsdx493r7d101s58hwjalqps6hy25nva5pvmfs";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/ghodss/yaml";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/ghodss/yaml";
|
|
||||||
rev = "73d445a93680fa1a78ae23a5839bad48f32ba1ee";
|
|
||||||
sha256 = "0pg53ky4sy3sp9j4n7vgf1p3gw4nbckwqfldcmmi9rf13kjh0mr7";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/gogo/protobuf";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/gogo/protobuf";
|
|
||||||
rev = "c0656edd0d9eab7c66d1eb0c568f9039345796f7";
|
|
||||||
sha256 = "0b943dhx571lhgcs3rqzy0092mi2x5mwy2kl7g8rryhy3r5rzrz9";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/golang/glog";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/golang/glog";
|
|
||||||
rev = "23def4e6c14b4da8ac2ed8007337bc5eb5007998";
|
|
||||||
sha256 = "0jb2834rw5sykfr937fxi8hxi2zy80sj2bdn9b3jb4b26ksqng30";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/golang/protobuf";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/golang/protobuf";
|
|
||||||
rev = "b4deda0973fb4c70b50d226b1af49f3da59f5265";
|
|
||||||
sha256 = "0ya4ha7m20bw048m1159ppqzlvda4x0vdprlbk5sdgmy74h3xcdq";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/google/btree";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/google/btree";
|
|
||||||
rev = "4030bb1f1f0c35b30ca7009e9ebd06849dd45306";
|
|
||||||
sha256 = "0ba430m9fbnagacp57krgidsyrgp3ycw5r7dj71brgp5r52g82p6";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/google/gofuzz";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/google/gofuzz";
|
|
||||||
rev = "24818f796faf91cd76ec7bddd72458fbced7a6c1";
|
|
||||||
sha256 = "0cq90m2lgalrdfrwwyycrrmn785rgnxa3l3vp9yxkvnv88bymmlm";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/googleapis/gnostic";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/googleapis/gnostic";
|
|
||||||
rev = "0c5108395e2debce0d731cf0287ddf7242066aba";
|
|
||||||
sha256 = "0jf3cp5clli88gpjf24r6wxbkvngnc1kf59d4cgjczsn2wasvsfc";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/gregjones/httpcache";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/gregjones/httpcache";
|
|
||||||
rev = "787624de3eb7bd915c329cba748687a3b22666a6";
|
|
||||||
sha256 = "1zqlg9pkj7r6fqw7wv3ywvbz3bh0hvzifs2scgcraj812q5189w5";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/imdario/mergo";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/imdario/mergo";
|
|
||||||
rev = "6633656539c1639d9d78127b7d47c622b5d7b6dc";
|
|
||||||
sha256 = "1fffbq1l17i0gynmvcxypl7d9h4v81g5vlimiph5bfgf4sp4db7g";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/inconshreveable/mousetrap";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/inconshreveable/mousetrap";
|
|
||||||
rev = "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75";
|
|
||||||
sha256 = "1mn0kg48xkd74brf48qf5hzp0bc6g8cf5a77w895rl3qnlpfw152";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/json-iterator/go";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/json-iterator/go";
|
|
||||||
rev = "f2b4162afba35581b6d4a50d3b8f34e33c144682";
|
|
||||||
sha256 = "0siqfghsm2lkdwinvg8x5gls3p76rq3cdm59c1r4x0b2mdfhnvcd";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/mattn/go-colorable";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/mattn/go-colorable";
|
|
||||||
rev = "167de6bfdfba052fa6b2d3664c8f5272e23c9072";
|
|
||||||
sha256 = "1nwjmsppsjicr7anq8na6md7b1z84l9ppnlr045hhxjvbkqwalvx";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/mattn/go-isatty";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/mattn/go-isatty";
|
|
||||||
rev = "6ca4dbf54d38eea1a992b3c722a76a5d1c4cb25c";
|
|
||||||
sha256 = "0zs92j2cqaw9j8qx1sdxpv3ap0rgbs0vrvi72m40mg8aa36gd39w";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/mitchellh/go-homedir";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/mitchellh/go-homedir";
|
|
||||||
rev = "b8bc1bf767474819792c23f32d8286a45736f1c6";
|
|
||||||
sha256 = "13ry4lylalkh4g2vny9cxwvryslzyzwp9r92z0b10idhdq3wad1q";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/modern-go/concurrent";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/modern-go/concurrent";
|
|
||||||
rev = "bacd9c7ef1dd9b15be4a9909b8ac7a4e313eec94";
|
|
||||||
sha256 = "0s0fxccsyb8icjmiym5k7prcqx36hvgdwl588y0491gi18k5i4zs";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/modern-go/reflect2";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/modern-go/reflect2";
|
|
||||||
rev = "4b7aa43c6742a2c18fdef89dd197aaae7dac7ccd";
|
|
||||||
sha256 = "1721y3yr3dpx5dx5ashf063qczk2awy5zjir1jvp1h5hn7qz4i49";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/petar/GoLLRB";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/petar/GoLLRB";
|
|
||||||
rev = "53be0d36a84c2a886ca057d34b6aa4468df9ccb4";
|
|
||||||
sha256 = "01xp3lcamqkvl91jg6ly202gdsgf64j39rkrcqxi6v4pbrcv7hz0";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/peterbourgon/diskv";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/peterbourgon/diskv";
|
|
||||||
rev = "5f041e8faa004a95c88a202771f4cc3e991971e6";
|
|
||||||
sha256 = "1mxpa5aad08x30qcbffzk80g9540wvbca4blc1r2qyzl65b8929b";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/pkg/errors";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/pkg/errors";
|
|
||||||
rev = "816c9085562cd7ee03e7f8188a1cfd942858cded";
|
|
||||||
sha256 = "1ws5crb7c70wdicavl6qr4g03nn6m92zd6wwp9n2ygz5c8rmxh8k";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/spf13/cobra";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/spf13/cobra";
|
|
||||||
rev = "a114f312e075f65bf30d6d9a1430113f857e543b";
|
|
||||||
sha256 = "10lmi5ni06yijxg02fcic5b7ycjkia12yma4a4lz8a56j30wykx1";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "github.com/spf13/pflag";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/spf13/pflag";
|
|
||||||
rev = "3ebe029320b2676d667ae88da602a5f854788a8a";
|
|
||||||
sha256 = "11yxs0wqy70wj106fkz8r923yg4ncnc2mbw33v48zmlg4a1rasgp";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "golang.org/x/crypto";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://go.googlesource.com/crypto";
|
|
||||||
rev = "49796115aa4b964c318aad4f3084fdb41e9aa067";
|
|
||||||
sha256 = "0pcq2drkzsw585xi6rda8imd7a139prrmvgmv8nz0zgzk6g4dy59";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "golang.org/x/net";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://go.googlesource.com/net";
|
|
||||||
rev = "1c05540f6879653db88113bc4a2b70aec4bd491f";
|
|
||||||
sha256 = "0h8yqb0vcqgllgydrf9d3rzp83w8wlr8f0nm6r1rwf2qg30pq1pd";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "golang.org/x/oauth2";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://go.googlesource.com/oauth2";
|
|
||||||
rev = "a6bd8cefa1811bd24b86f8902872e4e8225f74c4";
|
|
||||||
sha256 = "151in8qcf5y97ziavl6b03vgw4r87zqx5kg4vjhjszjbh60cfswp";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "golang.org/x/sys";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://go.googlesource.com/sys";
|
|
||||||
rev = "8e24a49d80f82323e1c4db1b5da3e0f31171a151";
|
|
||||||
sha256 = "0zsdnyb8dy98jw6f9yn6g5gdhaqwk39hqridr0mh4dhwvwvlj724";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "golang.org/x/text";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://go.googlesource.com/text";
|
|
||||||
rev = "f21a4dfb5e38f5895301dc265a8def02365cc3d0";
|
|
||||||
sha256 = "0r6x6zjzhr8ksqlpiwm5gdd7s209kwk5p4lw54xjvz10cs3qlq19";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "golang.org/x/time";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://go.googlesource.com/time";
|
|
||||||
rev = "f51c12702a4d776e4c1fa9b0fabab841babae631";
|
|
||||||
sha256 = "07wc6g2fvafkr6djsscm0jpbpl4135khhb6kpyx1953hi5d1jvyy";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "google.golang.org/appengine";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/golang/appengine";
|
|
||||||
rev = "ae0ab99deb4dc413a2b4bd6c8bdd0eb67f1e4d06";
|
|
||||||
sha256 = "1iabxnqgxvvn1239i6fvfl375vlbvhfrc03m1x2rvalmx4d6w9c7";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "gopkg.in/inf.v0";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/go-inf/inf";
|
|
||||||
rev = "3887ee99ecf07df5b447e9b00d9c0b2adaa9f3e4";
|
|
||||||
sha256 = "0rf3vwyb8aqnac9x9d6ax7z5526c45a16yjm2pvkijr6qgqz8b82";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "gopkg.in/yaml.v2";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/go-yaml/yaml";
|
|
||||||
rev = "5420a8b6744d3b0345ab293f6fcba19c978f1183";
|
|
||||||
sha256 = "0dwjrs2lp2gdlscs7bsrmyc5yf6mm4fvgw71bzr9mv2qrd2q73s1";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "k8s.io/api";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/kubernetes/api";
|
|
||||||
rev = "8be2a0b24ed0dac9cfc1ac2d987ea16cfcdbecb6";
|
|
||||||
sha256 = "1dpmd59jlkxgrp5aaf8420344c6nq4kjlc1avgcp7690yrzc50v6";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "k8s.io/apimachinery";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/kubernetes/apimachinery";
|
|
||||||
rev = "594fc14b6f143d963ea2c8132e09e73fe244b6c9";
|
|
||||||
sha256 = "0xykhpmjgagyb0ac4y0ps4v1s9bd2b1sc0simh48c41a9fk3yvr7";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
goPackagePath = "k8s.io/client-go";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/kubernetes/client-go";
|
|
||||||
rev = "739dd8f9d4801eb23e2bc43423c0b4acaaded29a";
|
|
||||||
sha256 = "15psjmb14rz4kwysim9vfbbylx0khkw29b195rziv1vk202lh28k";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
]
|
|
|
@ -1,25 +1,22 @@
|
||||||
{ stdenv, fetchFromGitHub }:
|
{ lib, fetchzip }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "2.0.2";
|
version = "2.10";
|
||||||
in fetchFromGitHub {
|
in
|
||||||
|
fetchzip {
|
||||||
name = "stix-two-${version}";
|
name = "stix-two-${version}";
|
||||||
|
|
||||||
owner = "stipub";
|
url = "https://github.com/stipub/stixfonts/raw/v${version}/zipfiles/STIX${builtins.replaceStrings [ "." ] [ "_" ] version}-all.zip";
|
||||||
repo = "stixfonts";
|
|
||||||
rev = "v${version}";
|
sha256 = "1xvh5c5asbasfa333mizimvdp209g0lppbwv2p0cg3ixfpxgq4dl";
|
||||||
|
|
||||||
postFetch = ''
|
postFetch = ''
|
||||||
tar xf $downloadedFile --strip=1
|
mkdir -p $out/share/fonts/
|
||||||
install -m444 -Dt $out/share/fonts/opentype/ OTF/*.otf
|
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
||||||
install -m444 -Dt $out/share/fonts/woff/ WOFF/*.woff
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
||||||
install -m444 -Dt $out/share/fonts/woff2/ WOFF2/*.woff2
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
sha256 = "1ah8s0cb67yv4ll8zfs01mdh9m5i2lbkrfbmkhi1xdid6pxsk32x";
|
meta = with lib; {
|
||||||
|
homepage = "https://www.stixfonts.org/";
|
||||||
meta = with stdenv.lib; {
|
|
||||||
homepage = "http://www.stixfonts.org/";
|
|
||||||
description = "Fonts for Scientific and Technical Information eXchange";
|
description = "Fonts for Scientific and Technical Information eXchange";
|
||||||
license = licenses.ofl;
|
license = licenses.ofl;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
|
|
31
pkgs/development/python-modules/sqlite-fts4/default.nix
Normal file
31
pkgs/development/python-modules/sqlite-fts4/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, isPy3k
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "sqlite-fts4";
|
||||||
|
version = "1.0.1";
|
||||||
|
disabled = !isPy3k;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "simonw";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "15r1mijk306fpm61viry5wjhqyxlbqqdk4nfcd901qarx7vqypgy";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Custom Python functions for working with SQLite FTS4";
|
||||||
|
homepage = "https://github.com/simonw/sqlite-fts4";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ meatcar ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -1,19 +1,22 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, isPy3k
|
, pythonOlder
|
||||||
, click
|
, click
|
||||||
, click-default-group
|
, click-default-group
|
||||||
|
, sqlite-fts4
|
||||||
, tabulate
|
, tabulate
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pytestrunner
|
, pytestrunner
|
||||||
, black
|
, black
|
||||||
|
, hypothesis
|
||||||
|
, sqlite
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "sqlite-utils";
|
pname = "sqlite-utils";
|
||||||
version = "3.0";
|
version = "3.0";
|
||||||
disabled = !isPy3k;
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
|
@ -23,6 +26,7 @@ buildPythonPackage rec {
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
click
|
click
|
||||||
click-default-group
|
click-default-group
|
||||||
|
sqlite-fts4
|
||||||
tabulate
|
tabulate
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -30,13 +34,19 @@ buildPythonPackage rec {
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
pytestrunner
|
pytestrunner
|
||||||
black
|
black
|
||||||
|
hypothesis
|
||||||
|
];
|
||||||
|
|
||||||
|
# disabled until upstream updates tests
|
||||||
|
disabledTests = lib.optionals (lib.versionAtLeast sqlite.version "3.34.0") [
|
||||||
|
"test_optimize"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python CLI utility and library for manipulating SQLite databases";
|
description = "Python CLI utility and library for manipulating SQLite databases";
|
||||||
homepage = "https://github.com/simonw/sqlite-utils";
|
homepage = "https://github.com/simonw/sqlite-utils";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.meatcar ];
|
maintainers = with maintainers; [ meatcar ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,13 +11,13 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "intel-compute-runtime";
|
pname = "intel-compute-runtime";
|
||||||
version = "20.33.17675";
|
version = "20.34.17727";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "intel";
|
owner = "intel";
|
||||||
repo = "compute-runtime";
|
repo = "compute-runtime";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1ckzspf05skdrjh947gv96finxbv5dpgc84hppm5pdsp5q70iyxp";
|
sha256 = "19scbbr6jf3yp2v7z8xyzzm01g44jym7xfkf1dz64d5nhvjw6ig5";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkgconfig ];
|
nativeBuildInputs = [ cmake pkgconfig ];
|
||||||
|
|
|
@ -11,6 +11,10 @@ rustPlatform.buildRustPackage rec {
|
||||||
sha256 = "sha256-88uEEsb+coX8PTKrem+0t5AkamCmqJsFYsENFTZSsys=";
|
sha256 = "sha256-88uEEsb+coX8PTKrem+0t5AkamCmqJsFYsENFTZSsys=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
prePatch = ''
|
||||||
|
rm .cargo/config.toml
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.IOKit;
|
buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.IOKit;
|
||||||
|
|
|
@ -7034,6 +7034,7 @@ in {
|
||||||
|
|
||||||
sqlitedict = callPackage ../development/python-modules/sqlitedict { };
|
sqlitedict = callPackage ../development/python-modules/sqlitedict { };
|
||||||
|
|
||||||
|
sqlite-fts4 = callPackage ../development/python-modules/sqlite-fts4 { };
|
||||||
sqlite-utils = callPackage ../development/python-modules/sqlite-utils { };
|
sqlite-utils = callPackage ../development/python-modules/sqlite-utils { };
|
||||||
|
|
||||||
sqlmap = callPackage ../development/python-modules/sqlmap { };
|
sqlmap = callPackage ../development/python-modules/sqlmap { };
|
||||||
|
|
Loading…
Reference in a new issue