Files
nixpkgs/pkgs/by-name/ge/genmap/package.nix
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

52 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
gtest,
which,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "genmap";
version = "1.3.0";
src = fetchFromGitHub {
owner = "cpockrandt";
repo = "genmap";
rev = "genmap-v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-7sIKBRMNzyCrZ/c2nXkknb6a5YsXe6DRE2IFhp6AviY=";
};
nativeBuildInputs = [ cmake ];
doCheck = true;
patches = [ ./gtest.patch ];
nativeCheckInputs = [
gtest
which
];
preCheck = "make genmap_algo_test";
# disable benchmarks
preConfigure = ''
echo > benchmarks/CMakeLists.txt
'';
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required (VERSION 3.0.0)" "cmake_minimum_required(VERSION 3.10)"
'';
meta = {
description = "Ultra-fast computation of genome mappability";
mainProgram = "genmap";
license = lib.licenses.bsd3;
homepage = "https://github.com/cpockrandt/genmap";
maintainers = with lib.maintainers; [ jbedo ];
platforms = lib.platforms.unix;
broken = stdenv.hostPlatform.isDarwin;
};
})