summary refs log tree commit diff
path: root/pkgs/shells/dgsh
diff options
context:
space:
mode:
authorRahul Gopinath <vrthra@users.noreply.github.com>2017-02-18 08:25:49 -0500
committerJoachim F <joachifm@users.noreply.github.com>2017-02-18 14:25:49 +0100
commit7901a7a65f10c820fbc7b3887e564cc2cd99b975 (patch)
treee8576e698a8157fc4c411b97e8c355529b87a74d /pkgs/shells/dgsh
parent979d20794d8651d7ac5c86ad37b68eacbadc5cc1 (diff)
downloadnixpkgs-7901a7a65f10c820fbc7b3887e564cc2cd99b975.tar
nixpkgs-7901a7a65f10c820fbc7b3887e564cc2cd99b975.tar.gz
nixpkgs-7901a7a65f10c820fbc7b3887e564cc2cd99b975.tar.bz2
nixpkgs-7901a7a65f10c820fbc7b3887e564cc2cd99b975.tar.lz
nixpkgs-7901a7a65f10c820fbc7b3887e564cc2cd99b975.tar.xz
nixpkgs-7901a7a65f10c820fbc7b3887e564cc2cd99b975.tar.zst
nixpkgs-7901a7a65f10c820fbc7b3887e564cc2cd99b975.zip
dgsh-unstable: Init at 2017-02-05 (#22657)
Dgsh is the directed graph shell
Diffstat (limited to 'pkgs/shells/dgsh')
-rw-r--r--pkgs/shells/dgsh/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/shells/dgsh/default.nix b/pkgs/shells/dgsh/default.nix
new file mode 100644
index 00000000000..51319aef90a
--- /dev/null
+++ b/pkgs/shells/dgsh/default.nix
@@ -0,0 +1,41 @@
+{ stdenv, fetchFromGitHub, autoconf, automake, pkgconfig,
+  libtool, check, bison, git, gperf,
+  perl, texinfo, help2man, gettext, ncurses
+}:
+
+stdenv.mkDerivation rec {
+  name = "dgsh-unstable-${version}";
+  version = "2017-02-05";
+
+  src = fetchFromGitHub {
+    owner = "dspinellis";
+    repo = "dgsh";
+    rev = "bc4fc2e8009c069ee4df5140c32a2fc15d0acdec";
+    sha256 = "0k3hmnarz56wphw45mabn5zcc427l5p77jldh1qqy89pxqy1wnql";
+    fetchSubmodules = true;
+  };
+
+  nativeBuildInputs = [ autoconf automake pkgconfig libtool check
+    bison git gettext gperf perl texinfo help2man ncurses
+  ];
+
+  configurePhase = ''
+    cp -r ./unix-tools/coreutils/gnulib gnulib
+    perl -pi -e \
+      's#./bootstrap #./bootstrap --no-bootstrap-sync --skip-po --no-git --gnulib-srcdir='$PWD/gnulib' #g' \
+      unix-tools/Makefile
+    find . -name \*.diff | xargs rm -f
+    rm -rf unix-tools/*/gnulib
+    patchShebangs unix-tools/diffutils/man/help2man
+    export RSYNC=true # set to rsync binary, eventhough it is not used.
+    make PREFIX=$out config
+  '';
+
+  meta = with stdenv.lib; {
+    description = "The Directed Graph Shell";
+    homepage = http://www.dmst.aueb.gr/dds/sw/dgsh;
+    license = with licenses; asl20;
+    maintainers = with maintainers; [ vrthra ];
+    platforms = with platforms; all;
+  };
+}