diff options
author | Justin Bedo <cu@cua0.org> | 2019-01-09 16:38:42 +1100 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2019-01-09 16:38:42 +1100 |
commit | c3babc9eb65dc8c56d07ce8a6ee0d8c03bbd223e (patch) | |
tree | f7d88ec21635664781c7c79fe0ea6f962ae38004 /tools/samtools-flagstat.nix | |
parent | 9fd618d0305d4927c8d86fc37238d1216e401967 (diff) |
large refactor
- use bionix.pkgs instead of nixpkgs
- replace stdenv.mkDerivation with stage
Diffstat (limited to 'tools/samtools-flagstat.nix')
-rw-r--r-- | tools/samtools-flagstat.nix | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/samtools-flagstat.nix b/tools/samtools-flagstat.nix index ae36c94..57d8bb6 100644 --- a/tools/samtools-flagstat.nix +++ b/tools/samtools-flagstat.nix @@ -1,14 +1,13 @@ { bionix -, nixpkgs }: input: -with nixpkgs; +with bionix; with lib; -stdenv.mkDerivation { +stage { name = "samtools-index"; - buildInputs = [ samtools ]; + buildInputs = with pkgs; [ samtools ]; buildCommand = "samtools flagstat -@ $NIX_BUILD_CORES ${input} > $out"; } |