From c3babc9eb65dc8c56d07ce8a6ee0d8c03bbd223e Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Wed, 9 Jan 2019 16:38:42 +1100 Subject: large refactor - use bionix.pkgs instead of nixpkgs - replace stdenv.mkDerivation with stage --- tools/samtools-dict.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'tools/samtools-dict.nix') diff --git a/tools/samtools-dict.nix b/tools/samtools-dict.nix index 80ec1e0..f9de70f 100644 --- a/tools/samtools-dict.nix +++ b/tools/samtools-dict.nix @@ -1,19 +1,18 @@ { bionix -, nixpkgs , flags ? null }: input: -with nixpkgs; +with bionix; with lib; -with bionix.types; +with types; assert (matchFiletype "samtools-dict" { fa = _: true; } input); -stdenv.mkDerivation { +stage { name = "samtools-dict"; - buildInputs = [ samtools ]; + buildInputs = with pkgs; [ samtools ]; buildCommand = '' samtools dict ${optionalString (flags != null) flags} ${input} > $out ''; -- cgit v1.2.3