depot/third_party/nixpkgs/pkgs/applications/science/biology/dssp/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

49 lines
1.1 KiB
Nix

{ lib
, stdenv
, cmake
, fetchFromGitHub
, libcifpp
, libmcfp
, zlib
}:
let
libcifpp' = libcifpp.overrideAttrs (oldAttrs: {
# dssp 4.3.1 requires specific version "5.1.0" of libcifpp
version = "5.1.0";
src = fetchFromGitHub {
inherit (oldAttrs.src) owner repo rev;
hash = "sha256-PUsi4T6huSqwaa6RnBP1Vj+0a1ePrvrHD0641Lkkc5s=";
};
});
in
stdenv.mkDerivation (finalAttrs: {
pname = "dssp";
version = "4.4.2";
src = fetchFromGitHub {
owner = "PDB-REDO";
repo = "dssp";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-Gic/rE/G24P5g4Uhf2lcvVa6i/4KGQzCpK4KlpjXcS0=";
};
nativeBuildInputs = [
cmake
];
buildInputs = [
libcifpp'
libmcfp
zlib
];
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";
changelog = "https://github.com/PDB-REDO/libcifpp/releases/tag/${finalAttrs.src.rev}";
license = licenses.bsd2;
maintainers = with maintainers; [ natsukium ];
platforms = platforms.unix;
};
})