torchat: use fetchFromGitHub

This commit is contained in:
Ben Siraphob 2021-05-11 20:07:27 +07:00 committed by Jonathan Ringer
parent 682578af42
commit 75c67d6be9

View file

@ -1,12 +1,14 @@
{ lib, stdenv, fetchurl, python, unzip, wxPython, wrapPython, tor }:
stdenv.mkDerivation rec {
{ lib, stdenv, fetchFromGitHub, python, unzip, wxPython, wrapPython, tor }:
stdenv.mkDerivation rec {
pname = "torchat";
version = "0.9.9.553";
src = fetchurl {
url = "https://github.com/prof7bit/TorChat/archive/${version}.tar.gz";
sha256 = "0rb4lvv40pz6ab5kxq40ycvh7kh1yxn7swzgv2ff2nbhi62xnzp0";
src = fetchFromGitHub {
owner = "prof7bit";
repo = "TorChat";
rev = version;
sha256 = "2LHG9qxZDo5rV6wsputdRo2Y1aHs+irMwt1ucFnXQE0=";
};
nativeBuildInputs = [ unzip ];