chickenPackages_4.egg2nix: switch to fetchFromGitHub

+9 -8
+9 -8
pkgs/development/compilers/chicken/4/egg2nix.nix
··· 1 - { lib, eggDerivation, fetchurl, chickenEggs }: 2 3 # Note: This mostly reimplements the default.nix already contained in 4 # the tarball. Is there a nicer way than duplicating code? 5 6 - let 7 version = "0.5"; 8 - in 9 - eggDerivation { 10 - src = fetchurl { 11 - url = "https://github.com/the-kenny/egg2nix/archive/${version}.tar.gz"; 12 - sha256 = "0adal428v4i7h9lzs7sfq75q2mxhsbf1qqwzrsjv8j41paars20y"; 13 }; 14 15 - name = "egg2nix-${version}"; 16 buildInputs = with chickenEggs; [ 17 matchable http-client 18 ];
··· 1 + { lib, eggDerivation, fetchFromGitHub, chickenEggs }: 2 3 # Note: This mostly reimplements the default.nix already contained in 4 # the tarball. Is there a nicer way than duplicating code? 5 6 + eggDerivation rec { 7 + name = "egg2nix-${version}"; 8 version = "0.5"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "the-kenny"; 12 + repo = "egg2nix"; 13 + rev = version; 14 + sha256 = "sha256-5ov2SWVyTUQ6NHnZNPRywd9e7oIxHlVWv4uWbsNaj/s="; 15 }; 16 17 buildInputs = with chickenEggs; [ 18 matchable http-client 19 ];