2023-04-29 16:46:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, libcifpp, libmcfp, zlib }:
|
|
|
|
let
|
|
|
|
libcifpp' = libcifpp.overrideAttrs (oldAttrs: rec {
|
|
|
|
# dssp 4.2.2.1 requires specific version "5.0.8" of libcifpp
|
|
|
|
version = "5.0.8";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit (oldAttrs.src) owner repo;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-KJGcopGhCWSl+ElG3BPJjBf/kvYJowOHxto6Ci1IMco=";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
in
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dssp";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "4.2.2.1";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PDB-REDO";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
sha256 = "sha256-vmGvC5d8LTo+pcY9sxwj0d6JvH8Lyk+QSOZo5raBci4=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
buildInputs = [ libcifpp' libmcfp zlib ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Calculate the most likely secondary structure assignment given the 3D structure of a protein";
|
|
|
|
homepage = "https://github.com/PDB-REDO/dssp";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ natsukium ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|