glucose: 4.1 -> 4.2.1

+7 -4
+7 -4
pkgs/applications/science/logic/glucose/default.nix
··· 1 1 { lib 2 2 , stdenv 3 3 , fetchurl 4 + , unzip 4 5 , zlib 5 6 , enableUnfree ? false 6 7 }: 7 8 8 9 stdenv.mkDerivation rec { 9 10 pname = "glucose" + lib.optionalString enableUnfree "-syrup"; 10 - version = "4.1"; 11 + version = "4.2.1"; 11 12 12 13 src = fetchurl { 13 - url = "http://www.labri.fr/perso/lsimon/downloads/softwares/glucose-syrup-${version}.tgz"; 14 - hash = "sha256-Uaoc8b7SsU8VQ7CZ6FpW3RqSvjfm4+sMSh/Yg9XMUCk="; 14 + url = "https://www.labri.fr/perso/lsimon/downloads/softwares/glucose-${version}.zip"; 15 + hash = "sha256-J0J9EKC/4cCiZr/y4lz+Hm7OcmJmMIIWzQ+4c+KhqXg="; 15 16 }; 16 17 17 - sourceRoot = "glucose-syrup-${version}/${if enableUnfree then "parallel" else "simp"}"; 18 + sourceRoot = "glucose-${version}/sources/${if enableUnfree then "parallel" else "simp"}"; 18 19 19 20 postPatch = '' 20 21 substituteInPlace Main.cc \ 21 22 --replace "defined(__linux__)" "defined(__linux__) && defined(__x86_64__)" 22 23 ''; 24 + 25 + nativeBuildInputs = [ unzip ]; 23 26 24 27 buildInputs = [ zlib ]; 25 28