nixpkgs/pkgs/development/interpreters/qnial/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

41 lines
891 B
Nix

{ 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;
};
}