Merge staging-next-21.05 into staging-21.05
This commit is contained in:
commit
e6ee5601f9
@ -16,13 +16,13 @@ in
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "imagemagick";
|
pname = "imagemagick";
|
||||||
version = "6.9.12-17";
|
version = "6.9.12-19";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ImageMagick";
|
owner = "ImageMagick";
|
||||||
repo = "ImageMagick6";
|
repo = "ImageMagick6";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-yZXvxl9Tbl3JRBmRcfsjbkaxywtD08SuUnJayKfwk9M=";
|
sha256 = "sha256-8KofT9aNd8SXL0YBQ0RUOTccVxQNacvJL1uYPZiSPkY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" "doc" ]; # bin/ isn't really big
|
outputs = [ "out" "dev" "doc" ]; # bin/ isn't really big
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
, libX11, libXScrnSaver, libXcomposite, libXcursor, libXdamage, libXext
|
, libX11, libXScrnSaver, libXcomposite, libXcursor, libXdamage, libXext
|
||||||
, libXfixes, libXi, libXrandr, libXrender, libXtst, libxcb, libxshmfence
|
, libXfixes, libXi, libXrandr, libXrender, libXtst, libxcb, libxshmfence
|
||||||
, mesa, nspr, nss, pango, systemd, libappindicator-gtk3, libdbusmenu
|
, mesa, nspr, nss, pango, systemd, libappindicator-gtk3, libdbusmenu
|
||||||
|
, writeScript, common-updater-scripts
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -71,7 +72,15 @@ in stdenv.mkDerivation rec {
|
|||||||
mimeType = "x-scheme-handler/discord";
|
mimeType = "x-scheme-handler/discord";
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru.updateScript = ./update-discord.sh;
|
passthru.updateScript = writeScript "discord-update-script" ''
|
||||||
|
#!/usr/bin/env nix-shell
|
||||||
|
#!nix-shell -i bash -p curl gnugrep common-updater-scripts
|
||||||
|
set -eou pipefail;
|
||||||
|
url=$(curl -sI "https://discordapp.com/api/download/${builtins.replaceStrings ["discord-" "discord"] ["" "stable"] pname}?platform=linux&format=tar.gz" | grep -oP 'location: \K\S+')
|
||||||
|
version=''${url##https://dl*.discordapp.net/apps/linux/}
|
||||||
|
version=''${version%%/*.tar.gz}
|
||||||
|
update-source-version ${pname} "$version" --file=./pkgs/applications/networking/instant-messengers/discord/default.nix
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "All-in-one cross-platform voice and text chat for gamers";
|
description = "All-in-one cross-platform voice and text chat for gamers";
|
||||||
|
@ -27,10 +27,10 @@ in {
|
|||||||
pname = "discord-canary";
|
pname = "discord-canary";
|
||||||
binaryName = "DiscordCanary";
|
binaryName = "DiscordCanary";
|
||||||
desktopName = "Discord Canary";
|
desktopName = "Discord Canary";
|
||||||
version = "0.0.125";
|
version = "0.0.126";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://dl-canary.discordapp.net/apps/linux/${version}/discord-canary-${version}.tar.gz";
|
url = "https://dl-canary.discordapp.net/apps/linux/${version}/discord-canary-${version}.tar.gz";
|
||||||
sha256 = "0ly5a6l7rvl54mc39xma14jrcrf11q3ndnkkr16by5hy3palmz9g";
|
sha256 = "EraTDRKd6t0c9U68tSRdGkeB1hfqNS4KUewEXwkL8io=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}.${branch}
|
}.${branch}
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# script to generate ./default.nix
|
|
||||||
|
|
||||||
set -e
|
|
||||||
exec >"${BASH_SOURCE%/*}/default.nix"
|
|
||||||
|
|
||||||
cat <<EOF
|
|
||||||
{ branch ? "stable", pkgs }:
|
|
||||||
# Generated by ./update-discord.sh
|
|
||||||
let
|
|
||||||
inherit (pkgs) callPackage fetchurl;
|
|
||||||
in {
|
|
||||||
EOF
|
|
||||||
|
|
||||||
for branch in "" ptb canary; do
|
|
||||||
url=$(curl -sI "https://discordapp.com/api/download${branch:+/}${branch}?platform=linux&format=tar.gz" | grep -oP 'location: \K\S+')
|
|
||||||
version=${url##https://dl*.discordapp.net/apps/linux/}
|
|
||||||
version=${version%%/*.tar.gz}
|
|
||||||
echo " ${branch:-stable} = callPackage ./base.nix rec {"
|
|
||||||
echo " pname = \"discord${branch:+-}${branch}\";"
|
|
||||||
case $branch in
|
|
||||||
"") suffix="" ;;
|
|
||||||
ptb) suffix="PTB" ;;
|
|
||||||
canary) suffix="Canary" ;;
|
|
||||||
esac
|
|
||||||
echo " binaryName = \"Discord${suffix}\";"
|
|
||||||
echo " desktopName = \"Discord${suffix:+ }${suffix}\";"
|
|
||||||
echo " version = \"${version}\";"
|
|
||||||
echo " src = fetchurl {"
|
|
||||||
echo " url = \"${url//${version}/\$\{version\}}\";"
|
|
||||||
echo " sha256 = \"$(nix-prefetch-url "$url")\";"
|
|
||||||
echo " };"
|
|
||||||
echo " };"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "}.\${branch}"
|
|
@ -1,6 +1,6 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, buildGoPackage
|
, buildGoModule
|
||||||
, btrfs-progs
|
, btrfs-progs
|
||||||
, go-md2man
|
, go-md2man
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
@ -8,19 +8,20 @@
|
|||||||
, nixosTests
|
, nixosTests
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
pname = "containerd";
|
pname = "containerd";
|
||||||
version = "1.5.1";
|
version = "1.5.2";
|
||||||
|
|
||||||
|
outputs = [ "out" "man" ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "containerd";
|
owner = "containerd";
|
||||||
repo = "containerd";
|
repo = "containerd";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-jVyg+fyMuDnV/TM0Z2t+Cr17a6XBv11aWijhsqMnA5s=";
|
sha256 = "sha256-RDLAmPBjDHCx9al+gstUTrvKc/L0vAm8IEd/mvX5Als=";
|
||||||
};
|
};
|
||||||
|
|
||||||
goPackagePath = "github.com/containerd/containerd";
|
vendorSha256 = null;
|
||||||
outputs = [ "out" "man" ];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ go-md2man installShellFiles util-linux ];
|
nativeBuildInputs = [ go-md2man installShellFiles util-linux ];
|
||||||
|
|
||||||
@ -28,11 +29,9 @@ buildGoPackage rec {
|
|||||||
|
|
||||||
buildFlags = [ "VERSION=v${version}" "REVISION=${src.rev}" ];
|
buildFlags = [ "VERSION=v${version}" "REVISION=${src.rev}" ];
|
||||||
|
|
||||||
BUILDTAGS = [ ]
|
BUILDTAGS = lib.optionals (btrfs-progs == null) [ "no_btrfs" ];
|
||||||
++ lib.optional (btrfs-progs == null) "no_btrfs";
|
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
cd go/src/${goPackagePath}
|
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
make binaries man $buildFlags
|
make binaries man $buildFlags
|
||||||
'';
|
'';
|
||||||
|
@ -8,7 +8,7 @@ rec {
|
|||||||
, moby-src
|
, moby-src
|
||||||
, runcRev, runcSha256
|
, runcRev, runcSha256
|
||||||
, containerdRev, containerdSha256
|
, containerdRev, containerdSha256
|
||||||
, tiniRev, tiniSha256, buildxSupport ? false
|
, tiniRev, tiniSha256, buildxSupport ? true
|
||||||
# package dependencies
|
# package dependencies
|
||||||
, stdenv, fetchFromGitHub, buildGoPackage
|
, stdenv, fetchFromGitHub, buildGoPackage
|
||||||
, makeWrapper, installShellFiles, pkg-config
|
, makeWrapper, installShellFiles, pkg-config
|
||||||
@ -75,6 +75,10 @@ rec {
|
|||||||
|
|
||||||
extraPath = optionals (stdenv.isLinux) (makeBinPath [ iproute2 iptables e2fsprogs xz xfsprogs procps util-linux git ]);
|
extraPath = optionals (stdenv.isLinux) (makeBinPath [ iproute2 iptables e2fsprogs xz xfsprogs procps util-linux git ]);
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs hack/make.sh hack/make/
|
||||||
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
export GOCACHE="$TMPDIR/go-cache"
|
export GOCACHE="$TMPDIR/go-cache"
|
||||||
# build engine
|
# build engine
|
||||||
@ -86,11 +90,6 @@ rec {
|
|||||||
cd -
|
cd -
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
patchShebangs .
|
|
||||||
substituteInPlace ./hack/make.sh --replace libsystemd-journal libsystemd
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
cd ./go/src/${goPackagePath}
|
cd ./go/src/${goPackagePath}
|
||||||
install -Dm755 ./bundles/dynbinary-daemon/dockerd $out/libexec/docker/dockerd
|
install -Dm755 ./bundles/dynbinary-daemon/dockerd $out/libexec/docker/dockerd
|
||||||
@ -142,6 +141,14 @@ rec {
|
|||||||
sqlite lvm2 btrfs-progs systemd libseccomp
|
sqlite lvm2 btrfs-progs systemd libseccomp
|
||||||
] ++ optionals (buildxSupport) [ docker-buildx ];
|
] ++ optionals (buildxSupport) [ docker-buildx ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs man scripts/build/
|
||||||
|
substituteInPlace ./scripts/build/.variables --replace "set -eu" ""
|
||||||
|
'' + optionalString buildxSupport ''
|
||||||
|
substituteInPlace ./cli-plugins/manager/manager_unix.go --replace /usr/libexec/docker/cli-plugins \
|
||||||
|
${lib.strings.makeSearchPathOutput "bin" "libexec/docker/cli-plugins" [docker-buildx]}
|
||||||
|
'';
|
||||||
|
|
||||||
# Keep eyes on BUILDTIME format - https://github.com/docker/cli/blob/${version}/scripts/build/.variables
|
# Keep eyes on BUILDTIME format - https://github.com/docker/cli/blob/${version}/scripts/build/.variables
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
export GOCACHE="$TMPDIR/go-cache"
|
export GOCACHE="$TMPDIR/go-cache"
|
||||||
@ -160,14 +167,6 @@ rec {
|
|||||||
cd -
|
cd -
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
patchShebangs .
|
|
||||||
substituteInPlace ./scripts/build/.variables --replace "set -eu" ""
|
|
||||||
'' + optionalString buildxSupport ''
|
|
||||||
substituteInPlace ./cli-plugins/manager/manager_unix.go --replace /usr/libexec/docker/cli-plugins \
|
|
||||||
${lib.strings.makeSearchPathOutput "bin" "libexec/docker/cli-plugins" [docker-buildx]}
|
|
||||||
'';
|
|
||||||
|
|
||||||
outputs = ["out" "man"];
|
outputs = ["out" "man"];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -209,7 +208,7 @@ rec {
|
|||||||
homepage = "https://www.docker.com/";
|
homepage = "https://www.docker.com/";
|
||||||
description = "An open source project to pack, ship and run any application as a lightweight container";
|
description = "An open source project to pack, ship and run any application as a lightweight container";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ offline tailhook vdemeester periklis ];
|
maintainers = with maintainers; [ offline tailhook vdemeester periklis mikroskeem ];
|
||||||
platforms = with platforms; linux ++ darwin;
|
platforms = with platforms; linux ++ darwin;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -220,14 +219,14 @@ rec {
|
|||||||
# Get revisions from
|
# Get revisions from
|
||||||
# https://github.com/moby/moby/tree/${version}/hack/dockerfile/install/*
|
# https://github.com/moby/moby/tree/${version}/hack/dockerfile/install/*
|
||||||
docker_20_10 = callPackage dockerGen rec {
|
docker_20_10 = callPackage dockerGen rec {
|
||||||
version = "20.10.6";
|
version = "20.10.7";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "15kknb26vyzjgqmn8r81a1sy1i5br6bvngqd5xljihppnxvp2gvl";
|
sha256 = "1r854jrjph4v1n5lr82z0cl0241ycili4qr3qh3k3bmqx790cds3";
|
||||||
moby-src = fetchFromGitHub {
|
moby-src = fetchFromGitHub {
|
||||||
owner = "moby";
|
owner = "moby";
|
||||||
repo = "moby";
|
repo = "moby";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1l4ra9bsvydaxd2fy7dgxp7ynpp0mrlwvcdhxiafw596559ab6qk";
|
sha256 = "0xhn11kgcbzda4z9j0rflvq0nfivizh3jrzhanwn5vnghafy4zqw";
|
||||||
};
|
};
|
||||||
runcRev = "b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7"; # v1.0.0-rc95
|
runcRev = "b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7"; # v1.0.0-rc95
|
||||||
runcSha256 = "18sbvmlvb6kird4w3rqsfrjdj7n25firabvdxsl0rxjfy9r1g2xb";
|
runcSha256 = "18sbvmlvb6kird4w3rqsfrjdj7n25firabvdxsl0rxjfy9r1g2xb";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, buildGoPackage
|
, buildGoModule
|
||||||
, go-md2man
|
, go-md2man
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
, pkg-config
|
, pkg-config
|
||||||
@ -14,7 +14,7 @@
|
|||||||
, nixosTests
|
, nixosTests
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
pname = "runc";
|
pname = "runc";
|
||||||
version = "1.0.0-rc95";
|
version = "1.0.0-rc95";
|
||||||
|
|
||||||
@ -25,7 +25,7 @@ buildGoPackage rec {
|
|||||||
sha256 = "sha256-q4sXcvJO9gyo7m0vlaMrwh7ZZHYa58FJy3GatWndS6M=";
|
sha256 = "sha256-q4sXcvJO9gyo7m0vlaMrwh7ZZHYa58FJy3GatWndS6M=";
|
||||||
};
|
};
|
||||||
|
|
||||||
goPackagePath = "github.com/opencontainers/runc";
|
vendorSha256 = null;
|
||||||
outputs = [ "out" "man" ];
|
outputs = [ "out" "man" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ go-md2man installShellFiles makeWrapper pkg-config which ];
|
nativeBuildInputs = [ go-md2man installShellFiles makeWrapper pkg-config which ];
|
||||||
@ -36,7 +36,6 @@ buildGoPackage rec {
|
|||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
cd go/src/${goPackagePath}
|
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
make ${toString makeFlags} runc man
|
make ${toString makeFlags} runc man
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
|
Loading…
x
Reference in New Issue
Block a user