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