From 9e8edc1389a65df6e1434e96a9b5bea352884d12 Mon Sep 17 00:00:00 2001 From: Rahul Gopinath Date: Wed, 27 Apr 2016 10:28:50 -0700 Subject: [PATCH] qnial: Init at 6.3 Qnial is an implementation of the Nial (Nested Array) Language --- .../interpreters/qnial/default.nix | 39 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/interpreters/qnial/default.nix diff --git a/pkgs/development/interpreters/qnial/default.nix b/pkgs/development/interpreters/qnial/default.nix new file mode 100644 index 000000000000..70f18740f686 --- /dev/null +++ b/pkgs/development/interpreters/qnial/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchFromGitHub, unzip, pkgconfig, makeWrapper, ncurses }: + +stdenv.mkDerivation rec { + name = "qnial-${version}"; + version = "6.3"; + + src = fetchFromGitHub { + sha256 = "0426hb8w0wpkisvmf3danj656j6g7rc6v91gqbgzkcj485qjaliw"; + rev = "cfe8720a4577d6413034faa2878295431bfe39f8"; + repo = "qnial"; + owner = "vrthra"; + }; + + nativeBuildInputs = [ makeWrapper ]; + + preConfigure = '' + cd build; + ''; + + installPhase = '' + cd .. + mkdir -p $out/bin $out/lib + cp build/nial $out/bin/ + cp -r niallib $out/lib/ + ''; + + buildInputs = [ + unzip + pkgconfig + ncurses + ]; + + meta = { + description = "An array language from Nial Systems"; + homepage = http://www.nial.com; + license = stdenv.lib.licenses.artistic1; + maintainers = [ stdenv.lib.maintainers.vrthra ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 99fb033c7fcb..1d396904367e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3048,6 +3048,8 @@ in sip = pythonPackages.sip_4_16; }; + qnial = callPackage ../development/interpreters/qnial {}; + ocz-ssd-guru = callPackage ../tools/misc/ocz-ssd-guru { }; qalculate-gtk = callPackage ../applications/science/math/qalculate-gtk { };