about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/interpreters/qnial/default.nix
blob: e90c268719d51a3bb8da8cf6afe38e15e5b3b325 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib, stdenv, fetchFromGitHub, unzip, pkg-config, makeWrapper, ncurses, libxcrypt }:

stdenv.mkDerivation {
  pname = "qnial";
  version = "6.3";

  src = fetchFromGitHub {
    sha256 = "0426hb8w0wpkisvmf3danj656j6g7rc6v91gqbgzkcj485qjaliw";
    rev = "cfe8720a4577d6413034faa2878295431bfe39f8";
    repo = "qnial";
    owner = "vrthra";
  };

  nativeBuildInputs = [ makeWrapper unzip pkg-config ];

  preConfigure = ''
    cd build;
  '';

  installPhase = ''
    cd ..
    mkdir -p $out/bin $out/lib
    cp build/nial $out/bin/
    cp -r niallib $out/lib/
  '';

  buildInputs = [
     ncurses
     libxcrypt
  ];

  meta = {
    description = "An array language from Nial Systems";
    mainProgram = "nial";
    homepage = "https://github.com/vrthra/qnial";
    license = lib.licenses.artistic1;
    maintainers = [ lib.maintainers.vrthra ];
    platforms = lib.platforms.linux;
  };
}