tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
glucose: 4.1 -> 4.2.1
Weijia Wang
2 years ago
8da8071e
2956bcc4
+7
-4
1 changed file
expand all
collapse all
unified
split
pkgs
applications
science
logic
glucose
default.nix
+7
-4
pkgs/applications/science/logic/glucose/default.nix
···
1
1
{ lib
2
2
, stdenv
3
3
, fetchurl
4
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
10
-
version = "4.1";
11
11
+
version = "4.2.1";
11
12
12
13
src = fetchurl {
13
13
-
url = "http://www.labri.fr/perso/lsimon/downloads/softwares/glucose-syrup-${version}.tgz";
14
14
-
hash = "sha256-Uaoc8b7SsU8VQ7CZ6FpW3RqSvjfm4+sMSh/Yg9XMUCk=";
14
14
+
url = "https://www.labri.fr/perso/lsimon/downloads/softwares/glucose-${version}.zip";
15
15
+
hash = "sha256-J0J9EKC/4cCiZr/y4lz+Hm7OcmJmMIIWzQ+4c+KhqXg=";
15
16
};
16
17
17
17
-
sourceRoot = "glucose-syrup-${version}/${if enableUnfree then "parallel" else "simp"}";
18
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
24
+
25
25
+
nativeBuildInputs = [ unzip ];
23
26
24
27
buildInputs = [ zlib ];
25
28