Skip to content

Commit

Permalink
crystfel: fix for aarch64-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
pmiddend committed Mar 1, 2023
1 parent fca0501 commit b67d920
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions pkgs/applications/science/physics/crystfel/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ lib
, stdenv
, gccStdenv
, fetchurl
, fetchFromGitHub
, fetchpatch
Expand Down Expand Up @@ -36,7 +37,7 @@
}:

let
libccp4 = stdenv.mkDerivation rec {
libccp4 = gccStdenv.mkDerivation rec {
pname = "libccp4";
version = "6.5.1";
src = fetchurl {
Expand All @@ -48,8 +49,16 @@ let
nativeBuildInputs = [ gfortran m4 ];
buildInputs = [ hdf5 gsl ];

# see https://github.com/NixOS/nixpkgs/issues/140041
hardeningDisable = [ "all" ];

configureFlags = [ "FFLAGS=-fallow-argument-mismatch" ];

configurePhase = ''
./configure
cat config.log
'';

# libccp4 tries to read syminfo.lib by looking at an environment variable, which hinders reproducibility.
# We hard-code this by providing a little patch and then passing the absolute path to syminfo.lib as a
# preprocessor flag.
Expand Down Expand Up @@ -224,7 +233,7 @@ stdenv.mkDerivation rec {
downloadPage = "https://www.desy.de/~twhite/crystfel/download.html";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ pmiddend ];
platforms = [ "x86_64-linux" "x86_64-darwin" ];
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" ];
};

}

0 comments on commit b67d920

Please sign in to comment.