nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchFromGitHub, unzip, pkg-config, makeWrapper, ncurses, libxcrypt }:
2
3stdenv.mkDerivation {
4 pname = "qnial";
5 version = "6.3";
6
7 src = fetchFromGitHub {
8 sha256 = "0426hb8w0wpkisvmf3danj656j6g7rc6v91gqbgzkcj485qjaliw";
9 rev = "cfe8720a4577d6413034faa2878295431bfe39f8";
10 repo = "qnial";
11 owner = "vrthra";
12 };
13
14 nativeBuildInputs = [ makeWrapper unzip pkg-config ];
15
16 preConfigure = ''
17 cd build;
18 '';
19
20 installPhase = ''
21 cd ..
22 mkdir -p $out/bin $out/lib
23 cp build/nial $out/bin/
24 cp -r niallib $out/lib/
25 '';
26
27 buildInputs = [
28 ncurses
29 libxcrypt
30 ];
31
32 meta = {
33 description = "An array language from Nial Systems";
34 homepage = "https://github.com/vrthra/qnial";
35 license = lib.licenses.artistic1;
36 maintainers = [ lib.maintainers.vrthra ];
37 platforms = lib.platforms.linux;
38 };
39}