ib/controller: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-11-02 14:23:17 +01:00
parent 51d7d76206
commit 58993fbd4d

View File

@ -1,12 +1,14 @@
{ lib, stdenv, fetchurl, unzip, jdk, ib-tws, xpra }:
{ lib, stdenv, fetchFromGitHub, unzip, jdk, ib-tws, xpra }:
stdenv.mkDerivation rec {
version = "2.14.0";
pname = "ib-controller";
src = fetchurl {
url = "https://github.com/ib-controller/ib-controller/archive/${version}.tar.gz";
sha256 = "17a8bcgg9z3b4y38k035hm2lgvhmf8srlz59c7n2q3fdw2i95i68";
src = fetchFromGitHub {
owner = "ib-controller";
repo = "ib-controller";
rev = version;
sha256 = "sha256-R175CKb3uErjBNe73HEFMI+bNmmuH2nWGraCSh5bXwc=";
};
phases = [ "unpackPhase" "installPhase" ];
@ -150,7 +152,7 @@ stdenv.mkDerivation rec {
fi
EOF
chmod u+x $out/bin/ib-gw-c
'';
'';
meta = with lib; {