aboutsummaryrefslogtreecommitdiff
path: root/default.nix
blob: 11f4d37197426c8b71e34607be8317bb70412453 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{nixpkgs ? import <nixpkgs> {}}:

let
  bionix = nixpkgs.lib.makeExtensible (self:
  let callBionix = file: attrs: import file ({ bionix = self; nixpkgs = nixpkgs; } // attrs);
  in with self; {
      callBionix = callBionix;
      id = x: x;

      bwa = callBionix ./tools/bwa.nix {};
      crumble = callBionix ./tools/crumble.nix {};
      fastqc = callBionix ./tools/fastqc.nix {};
      gridss = callBionix ./tools/gridss.nix {};
      mosdepth = callBionix ./tools/mosdepth.nix {};
      platypus = callBionix ./tools/platypus.nix {};
      samtools = callBionix ./tools/samtools.nix {};
      strelka = callBionix ./tools/strelka.nix {};

      qsub = nixpkgs.callPackage ./lib/qsub.nix {};
      qsubAttr = qsubAttrs: f: attrs: i: qsub qsubAttrs (f attrs i);
      qsubAttrs = attrs: nixpkgs.lib.mapAttrs (_: x: qsubAttr attrs x);
      ref = callBionix ./lib/references.nix {};
      def = f: defs: attrs: f (defs // attrs);
  });
in bionix