summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/editors/hecate
diff options
context:
space:
mode:
authorRam Kromberg <ramkromberg@mail.com>2016-10-18 19:24:43 +0300
committerRam Kromberg <ramkromberg@mail.com>2016-10-18 19:40:23 +0300
commitfd02ff7cf573d60eecc2795cd53ea4c5d0ae45f3 (patch)
treed4d5ac9d6c61ea94b4a9a94a91e4328a73a1fb7e /pkgs/applications/editors/hecate
parenta70e11adbf4df9063d4f3295b79754da362f2e90 (diff)
hecate: init at 0.0.1
Diffstat (limited to 'pkgs/applications/editors/hecate')
-rw-r--r--pkgs/applications/editors/hecate/default.nix26
-rw-r--r--pkgs/applications/editors/hecate/deps.nix29
2 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/applications/editors/hecate/default.nix b/pkgs/applications/editors/hecate/default.nix
new file mode 100644
index 000000000000..8aea8508aefd
--- /dev/null
+++ b/pkgs/applications/editors/hecate/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, buildGoPackage, fetchFromGitHub }:
+
+buildGoPackage rec {
+ version = "0.0.1";
+ name = "hecate-${version}";
+
+ src = fetchFromGitHub {
+ owner = "evanmiller";
+ repo = "hecate";
+ rev = "v${version}";
+ sha256 = "0ymirsd06z3qa9wi59k696mg8f4mhscw8gc5c5zkd0n3n8s0k0z8";
+ };
+
+ goPackagePath = "hecate";
+
+ goDeps = ./deps.nix;
+
+ meta = with stdenv.lib; {
+ inherit (src.meta) homepage;
+ description = "terminal hex editor";
+ longDescription = "The Hex Editor From Hell!";
+ license = with licenses; [ mit ];
+ maintainers = with maintainers; [ ramkromberg ];
+ platforms = with platforms; linux;
+ };
+}
diff --git a/pkgs/applications/editors/hecate/deps.nix b/pkgs/applications/editors/hecate/deps.nix
new file mode 100644
index 000000000000..c9d94934a444
--- /dev/null
+++ b/pkgs/applications/editors/hecate/deps.nix
@@ -0,0 +1,29 @@
+[
+ {
+ goPackagePath = "github.com/nsf/termbox-go";
+ fetch = {
+ type = "git";
+ url = "https://github.com/nsf/termbox-go";
+ rev = "b6acae516ace002cb8105a89024544a1480655a5";
+ sha256 = "0zf95qdd5bif9rw03hqk87x7d905p373bvsj0bl4gi16spqjbdil";
+ };
+ }
+ {
+ goPackagePath = "github.com/edsrzf/mmap-go";
+ fetch = {
+ type = "git";
+ url = "https://github.com/edsrzf/mmap-go";
+ rev = "935e0e8a636ca4ba70b713f3e38a19e1b77739e8";
+ sha256 = "11a63wrjwfnchjhwqjp6yd5j0370ysppjgv31l5bmvvwps7whq9d";
+ };
+ }
+ {
+ goPackagePath = "github.com/mattn/go-runewidth";
+ fetch = {
+ type = "git";
+ url = "https://github.com/mattn/go-runewidth";
+ rev = "737072b4e32b7a5018b4a7125da8d12de90e8045";
+ sha256 = "09ni8bmj6p2b774bdh6mfcxl03bh5sqk860z03xpb6hv6yfxqkjm";
+ };
+ }
+]