summaryrefslogtreecommitdiff
path: root/pkgs/tools/misc/xcd
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/xcd')
-rw-r--r--pkgs/tools/misc/xcd/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/misc/xcd/default.nix b/pkgs/tools/misc/xcd/default.nix
new file mode 100644
index 000000000000..7e3402104192
--- /dev/null
+++ b/pkgs/tools/misc/xcd/default.nix
@@ -0,0 +1,29 @@
+{ lib, stdenv, fetchurl, ncurses }:
+
+stdenv.mkDerivation rec {
+ pname = "xcd";
+ version = "1.2";
+
+ src = fetchurl {
+ url = "https://www.muppetlabs.com/~breadbox/pub/software/${pname}-${version}.tar.gz";
+ sha256 = "1cgwspy08q05rhxbp7m1yrrix252i9jzfcfbzmhdvlgf5bfpl25g";
+ };
+
+ buildInputs = [ ncurses ];
+
+ makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
+
+ installPhase = ''
+ runHook preInstall
+ install -D $pname $out/bin/$pname
+ runHook postInstall
+ '';
+
+ meta = with lib; {
+ description = "Colorized hexdump tool";
+ homepage = "https://www.muppetlabs.com/~breadbox/software/xcd.html";
+ maintainers = [ maintainers.xfnw ];
+ license = licenses.mit;
+ platforms = platforms.unix;
+ };
+}