Created
April 26, 2024 02:39
-
-
Save inclyc/a0810376cbd808be533691cae0e6db42 to your computer and use it in GitHub Desktop.
NAMD2 patchelf from binary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv | |
, fetchurl | |
, autoPatchelfHook | |
, zlib | |
}: | |
let | |
version = "2.14"; | |
in | |
stdenv.mkDerivation { | |
inherit version; | |
pname = "namd-bin"; | |
src = fetchurl { | |
url = "https://www.ks.uiuc.edu/Research/namd/2.14/download/946183/NAMD_2.14_Linux-x86_64-multicore-CUDA.tar.gz"; | |
sha256 = "sha256-8VFsebjWunLzTxosCx0JtOr9Ti97sfxYX9n+QY0UGXY="; | |
}; | |
nativeBuildInputs = [ autoPatchelfHook ]; | |
buildInputs = [ | |
stdenv.cc.cc.lib | |
zlib | |
]; | |
installPhase = '' | |
runHook preInstall | |
mkdir -p $out/bin | |
cp namd2 charmrun flipbinpdb flipdcd psfgen sortreplicas $out/bin | |
cp -r lib $out/lib | |
runHook postInstall | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment