lol

teyjus: switch to fetchFromGitHub

+8 -10
+8 -10
pkgs/development/compilers/teyjus/default.nix
··· 1 - { lib, stdenv, fetchurl, omake, ocaml, flex, bison }: 1 + { lib, stdenv, fetchFromGitHub, omake, ocaml, flex, bison }: 2 2 3 - let 4 - version = "2.1"; 5 - in 6 - 7 - stdenv.mkDerivation { 3 + stdenv.mkDerivation rec { 8 4 pname = "teyjus"; 9 - inherit version; 5 + version = "2.1"; 10 6 11 - src = fetchurl { 12 - url = "https://github.com/teyjus/teyjus/archive/v${version}.tar.gz"; 13 - sha256 = "0393wpg8v1vvarqy2xh4fdmrwlrl6jaj960kql7cq79mb9p3m269"; 7 + src = fetchFromGitHub { 8 + owner = "teyjus"; 9 + repo = "teyjus"; 10 + rev = "v${version}"; 11 + sha256 = "sha256-nz7jZ+GdF6mZQPzBrVD9K/RtoeuVRuhfs7vej4zDkhg="; 14 12 }; 15 13 16 14 patches = [ ./fix-lex-to-flex.patch ];