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