mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
7bbda31fc0
- use backup from bitbucket/museoa - finalAttrs design pattern - remove unused input makeWrapper - strictDeps - change maintainer
54 lines
915 B
Nix
54 lines
915 B
Nix
{
|
|
lib,
|
|
fetchFromBitbucket,
|
|
libxcrypt,
|
|
ncurses,
|
|
pkg-config,
|
|
stdenv,
|
|
unzip,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "qnial";
|
|
version = "6.3_1";
|
|
|
|
src = fetchFromBitbucket {
|
|
owner = "museoa";
|
|
repo = "qnial";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-QhjEq6YKO6OKy7+dlHeTWQvCvrF8zS7o8QfPD8WDXy0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
unzip
|
|
];
|
|
|
|
buildInputs = [
|
|
ncurses
|
|
libxcrypt
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
preConfigure = ''
|
|
cd build
|
|
'';
|
|
|
|
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";
|
|
homepage = "https://bitbucket.com/museoa/qnial";
|
|
license = lib.licenses.artistic1;
|
|
mainProgram = "nial";
|
|
maintainers = [ lib.maintainers.AndersonTorres ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|