From ded9f9444472f4fd2809d258a73cb103099f7fe5 Mon Sep 17 00:00:00 2001 From: Tyson Whitehead Date: Thu, 7 Nov 2019 17:26:34 -0500 Subject: [PATCH] gsort: Initial packaging --- pkgs/all-packages.nix | 2 ++ pkgs/gsort/default.nix | 24 +++++++++++++++++++++ pkgs/gsort/deps.nix | 48 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 pkgs/gsort/default.nix create mode 100644 pkgs/gsort/deps.nix diff --git a/pkgs/all-packages.nix b/pkgs/all-packages.nix index c095716..1ed23f8 100644 --- a/pkgs/all-packages.nix +++ b/pkgs/all-packages.nix @@ -19,6 +19,8 @@ self: super: pkgs: with pkgs; { ghmm = callPackage ./ghmm { }; + gsort = callPackage ./gsort { }; + inherit (callPackages ./octopus/libxc.nix { }) libxc301 libxc404; libxc3 = libxc301; libxc4 = libxc404; diff --git a/pkgs/gsort/default.nix b/pkgs/gsort/default.nix new file mode 100644 index 0000000..1c53846 --- /dev/null +++ b/pkgs/gsort/default.nix @@ -0,0 +1,24 @@ +# This file was generated by https://github.com/kamilchm/go2nix v1.3.0 +{ stdenv, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }: + +buildGoPackage rec { + name = "gsort-${version}"; + version = "0.1.2"; + + goPackagePath = "github.com/brentp/gsort"; + + src = fetchgit { + rev = "v${version}"; + url = "https://github.com/brentp/gsort.git"; + sha256 = "1l65f8dn0d2jdk1x8bz3p03ia146rlzjflmz4rdzw8nax0kc2n6w"; + }; + + goDeps = ./deps.nix; + + meta = with stdenv.lib; { + homepage = https://github.com/brentp/gsort; + description = "A tool to sort genomic files according to a genomefile."; + platforms = platforms.all; + license = licenses.mit; + }; +} diff --git a/pkgs/gsort/deps.nix b/pkgs/gsort/deps.nix new file mode 100644 index 0000000..c2ccc5b --- /dev/null +++ b/pkgs/gsort/deps.nix @@ -0,0 +1,48 @@ +# This file was generated by https://github.com/kamilchm/go2nix v1.3.0 +[ + { + goPackagePath = "github.com/alexflint/go-arg"; + fetch = { + type = "git"; + url = "https://github.com/alexflint/go-arg"; + rev = "c0c7a3ba8a1854cd85e65cca4f0e2028698a0738"; + sha256 = "19vcwh799521rvs4cyplkmw5jw07xqrmvxicf1x57mqgg4y4rapx"; + }; + } + { + goPackagePath = "github.com/brentp/xopen"; + fetch = { + type = "git"; + url = "https://github.com/brentp/xopen"; + rev = "111b45cadc7d8be411420143ce0873a889c90227"; + sha256 = "027nzdcxm1nylj1h25085k1xyz430m7g2qb3ni7j45jviypsffxw"; + }; + } + { + goPackagePath = "github.com/gogetdata/ggd-utils"; + fetch = { + type = "git"; + url = "https://github.com/gogetdata/ggd-utils"; + rev = "8f15d3f0e0fe269cd980cf82489ecbd2e6bee2a8"; + sha256 = "0m0258ylaklab72d4ayiiv4vlfb8yz00np9k5f0axqjkcz0ppwg3"; + }; + } + { + goPackagePath = "github.com/klauspost/compress"; + fetch = { + type = "git"; + url = "https://github.com/klauspost/compress"; + rev = "16a4d3d7137cdefd94d420f22b5c20260674b95c"; + sha256 = "00dy0xr8hyr8l4215kcaqkf232vrrxwrdkaidapnxg77gvd4lpb7"; + }; + } + { + goPackagePath = "github.com/pkg/errors"; + fetch = { + type = "git"; + url = "https://github.com/pkg/errors"; + rev = "27936f6d90f9c8e1145f11ed52ffffbfdb9e0af7"; + sha256 = "0yzmgi6g4ak4q8y7w6x0n5cbinlcn8yc3gwgzy4yck00qdn25d6y"; + }; + } +]