From 7e6011083da98a4cd819f828dfe006826b7cb669 Mon Sep 17 00:00:00 2001 From: Benjamin Staffin Date: Tue, 19 Sep 2017 12:26:58 -0400 Subject: [PATCH 1/2] slack: 2.7.1 -> 2.8.0 (#29339) --- .../networking/instant-messengers/slack/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/slack/default.nix b/pkgs/applications/networking/instant-messengers/slack/default.nix index f36f0956f65..93bc6feff3c 100644 --- a/pkgs/applications/networking/instant-messengers/slack/default.nix +++ b/pkgs/applications/networking/instant-messengers/slack/default.nix @@ -4,7 +4,7 @@ let - version = "2.7.1"; + version = "2.8.0"; rpath = stdenv.lib.makeLibraryPath [ alsaLib @@ -46,7 +46,7 @@ let if stdenv.system == "x86_64-linux" then fetchurl { url = "https://downloads.slack-edge.com/linux_releases/slack-desktop-${version}-amd64.deb"; - sha256 = "1na163lr0lfii9z1v4q9a3scqlaxg0s561a9nhadbqj03k74dw6s"; + sha256 = "02khqi0qf8ryj6bkfla95mr3scvb99zrhihwdprdjqpgvy06wqhm"; } else throw "Slack is not supported on ${stdenv.system}"; From 64aebc7679bc9aaa94c3696390174acd62ef1f3a Mon Sep 17 00:00:00 2001 From: John Ericson Date: Tue, 19 Sep 2017 14:46:43 -0400 Subject: [PATCH 2/2] stdenv: Also splice unlisted default "out" output Otherwise, some cross builds will use the wrong type of dep. This won't affect native builds, and perhaps no extant cross buids either. --- pkgs/top-level/splice.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/splice.nix b/pkgs/top-level/splice.nix index 43951100de3..44a46b7b692 100644 --- a/pkgs/top-level/splice.nix +++ b/pkgs/top-level/splice.nix @@ -43,8 +43,9 @@ let // (lib.optionalAttrs (buildPkgs ? ${name}) { nativeDrv = buildValue; }) // (lib.optionalAttrs (runPkgs ? ${name}) { crossDrv = runValue; }); # Get the set of outputs of a derivation - getOutputs = value: - lib.genAttrs (value.outputs or []) (output: value.${output}); + getOutputs = value: lib.genAttrs + (value.outputs or (lib.optional (value ? out) "out")) + (output: value.${output}); in # Certain *Cross derivations will fail assertions, but we need their # nativeDrv. We are assuming anything that fails to evaluate is an