File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 252
252
253
253
scalapackfx = callPackage ./pkgs/lib/scalapackfx { } ;
254
254
255
+ sgroup = callPackage ./pkgs/apps/sgroup { } ;
256
+
255
257
# blank version
256
258
sharc = callPackage ./pkgs/apps/sharc/default.nix {
257
259
hdf4 = super . hdf4 . override {
Original file line number Diff line number Diff line change
1
+ { stdenv
2
+ , fetchurl
3
+ , lib
4
+ } :
5
+
6
+ stdenv . mkDerivation rec {
7
+ pname = "sgroup" ;
8
+ version = "1.0" ;
9
+
10
+ src = fetchurl {
11
+ url = "https://elsevier.digitalcommonsdata.com/public-files/datasets/xp76bp3zxs/files/c315c05e-6734-43c1-9205-76b98281c043/file_downloaded" ;
12
+ hash = "sha256-TNaoRQAFjjOmZCq7ZvQYGfxseEzo6mAwWim6HeS+Xig=" ;
13
+ } ;
14
+
15
+ unpackPhase = ''
16
+ runHook preUnpack
17
+
18
+ tar -xvf ${ src }
19
+ cd SpaceGroups
20
+
21
+ runHook postUnpack
22
+ '' ;
23
+
24
+ postPatch = ''
25
+ substituteInPlace Makefile \
26
+ --replace "LDFLAGS = -L/usr/lib" "LDFLAGS =" \
27
+ --replace "#FOPT = -O3 -malign-double -malign-loops=4 -malign-jumps=4" "FOPT = -O3 -malign-double -malign-loops=4 -malign-jumps=4"
28
+ '' ;
29
+
30
+ dontConfigure = true ;
31
+
32
+ installPhase = ''
33
+ mkdir -p $out/bin
34
+ cp sgroup $out/bin
35
+ '' ;
36
+
37
+ meta = with lib ; {
38
+ description = "Determination of the space group and unit cell for a periodic solid" ;
39
+ homepage = "https://elsevier.digitalcommonsdata.com/datasets/xp76bp3zxs/1" ;
40
+ license = licenses . unfree ;
41
+ maintainers = [ maintainers . sheepforce ] ;
42
+ platforms = [ "x86_64-linux" ] ;
43
+ } ;
44
+ }
You can’t perform that action at this time.
0 commit comments