2024-07-15 17:49:03 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromBitbucket,
|
|
|
|
libxcrypt,
|
|
|
|
ncurses,
|
|
|
|
pkg-config,
|
|
|
|
stdenv,
|
|
|
|
unzip,
|
|
|
|
}:
|
2016-04-27 17:28:50 +00:00
|
|
|
|
2024-07-15 17:49:03 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "qnial";
|
2024-07-15 17:49:03 +00:00
|
|
|
version = "6.3_1";
|
2016-04-27 17:28:50 +00:00
|
|
|
|
2024-07-15 17:49:03 +00:00
|
|
|
src = fetchFromBitbucket {
|
|
|
|
owner = "museoa";
|
2016-04-27 17:28:50 +00:00
|
|
|
repo = "qnial";
|
2024-07-15 17:49:03 +00:00
|
|
|
rev = finalAttrs.version;
|
|
|
|
hash = "sha256-QhjEq6YKO6OKy7+dlHeTWQvCvrF8zS7o8QfPD8WDXy0=";
|
2016-04-27 17:28:50 +00:00
|
|
|
};
|
|
|
|
|
2024-07-15 17:49:03 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
unzip
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
libxcrypt
|
|
|
|
];
|
|
|
|
|
|
|
|
strictDeps = true;
|
2016-04-27 17:28:50 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
2024-07-15 17:49:03 +00:00
|
|
|
cd build
|
2016-04-27 17:28:50 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
cd ..
|
|
|
|
mkdir -p $out/bin $out/lib
|
|
|
|
cp build/nial $out/bin/
|
|
|
|
cp -r niallib $out/lib/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Array language from Nial Systems";
|
2024-07-15 17:49:03 +00:00
|
|
|
homepage = "https://bitbucket.com/museoa/qnial";
|
2021-01-23 13:15:07 +00:00
|
|
|
license = lib.licenses.artistic1;
|
2024-07-15 17:49:03 +00:00
|
|
|
mainProgram = "nial";
|
|
|
|
maintainers = [ lib.maintainers.AndersonTorres ];
|
2021-01-23 13:15:07 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2016-04-27 17:28:50 +00:00
|
|
|
};
|
2024-07-15 17:49:03 +00:00
|
|
|
})
|