nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitLab,
5 unzip,
6 zlib,
7 python3,
8 parallel,
9}:
10
11stdenv.mkDerivation rec {
12 pname = "last";
13 version = "1651";
14
15 src = fetchFromGitLab {
16 owner = "mcfrith";
17 repo = "last";
18 tag = version;
19 hash = "sha256-TAc9prYydX5XO31f6p5DD7XMxVbNOW9ROtB7Agd7t8c=";
20 };
21
22 nativeBuildInputs = [
23 unzip
24 ];
25
26 buildInputs = [
27 zlib
28 python3
29 ];
30
31 makeFlags = [
32 "prefix=${placeholder "out"}"
33 ];
34
35 postFixup = ''
36 for f in $out/bin/parallel-* ; do
37 sed -i 's|parallel |${parallel}/bin/parallel |' $f
38 done
39 '';
40
41 meta = {
42 description = "Genomic sequence aligner";
43 homepage = "https://gitlab.com/mcfrith/last";
44 license = lib.licenses.gpl3Plus;
45 maintainers = with lib.maintainers; [ jbedo ];
46 platforms = lib.platforms.x86_64;
47 };
48}