slack-cli: use fetchFromGitHub instead of fetchurl
This commit is contained in:
parent
8d2ab1d914
commit
ccc8dd222e
@ -2,15 +2,17 @@
|
|||||||
# variable. Using `slack init` will not work because it tries to write
|
# variable. Using `slack init` will not work because it tries to write
|
||||||
# to the Nix store.
|
# to the Nix store.
|
||||||
|
|
||||||
{ stdenv, lib, fetchurl, makeWrapper, curl, jq }:
|
{ stdenv, lib, fetchFromGitHub, makeWrapper, curl, jq }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "slack-cli";
|
name = "slack-cli";
|
||||||
version = "0.18.0";
|
version = "0.18.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/rockymadden/slack-cli/archive/v${version}.tar.gz";
|
owner = "rockymadden";
|
||||||
sha256 = "0q19l88c1mvnzya58q21pc3v6mff56z43288kzk50000ri286wq2";
|
repo = "slack-cli";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "022yr3cpfg0v7cxi62zzk08vp0l3w851qpfh6amyfgjiynnfyddl";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ makeWrapper ];
|
buildInputs = [ makeWrapper ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user