push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
diff -Naur source-old/bqn.js source-new/bqn.js
--- source-old/bqn.js 1969-12-31 21:00:01.000000000 -0300
+++ source-new/bqn.js 2021-10-03 01:28:00.268998916 -0300
@@ -4,7 +4,7 @@
let path = require('path');
let fs = require('fs');
-let bqn = require("./docs/bqn.js");
+let bqn = require("@libbqn@");
module.exports = bqn;
let {fmt,fmtErr,sysvals,sysargs,makebqn,makerepl}=bqn;
let {has,list,str,unstr,dynsys,req1str,makens}=bqn.util;

View File

@@ -0,0 +1,63 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
makeWrapper,
nodejs,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "bqn";
version = "0-unstable-2024-05-13";
src = fetchFromGitHub {
owner = "mlochbaum";
repo = "BQN";
rev = "c971a177421d532a13c4b7515535552df19681e1";
hash = "sha256-Fru1IIb4IxBQxrEEBoRYStxBqYJJqd+Q+Hwyk++QA68=";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ nodejs ];
patches = [
# Creates a @libbqn@ substitution variable, to be filled in postFixup
./001-libbqn-path.patch
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/share/bqn
cp bqn.js $out/share/bqn/bqn.js
cp docs/bqn.js $out/share/bqn/libbqn.js
makeWrapper "${lib.getBin nodejs}/bin/node" "$out/bin/mbqn" \
--add-flags "$out/share/bqn/bqn.js"
ln -s $out/bin/mbqn $out/bin/bqn
runHook postInstall
'';
postFixup = ''
substituteInPlace $out/share/bqn/bqn.js \
--subst-var-by "libbqn" "$out/share/bqn/libbqn.js"
'';
dontConfigure = true;
dontBuild = true;
strictDeps = true;
meta = {
homepage = "https://github.com/mlochbaum/BQN/";
description = "Original BQN implementation in Javascript";
license = lib.licenses.isc;
maintainers = [ ];
inherit (nodejs.meta) platforms;
};
})
# TODO: install docs and other stuff

View File

@@ -0,0 +1,39 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
}:
stdenvNoCC.mkDerivation {
pname = "bqn386";
version = "0-unstable-2022-05-16";
src = fetchFromGitHub {
owner = "dzaima";
repo = "BQN386";
rev = "81e18d1eb8cb6b66df9e311b3b63ec086d910d18";
hash = "sha256-f0MbrxdkEiOqod41U07BvdDFDbFCqJuGyDIcx2Y24D0=";
};
outputs = [
"out"
"woff2"
];
installPhase = ''
runHook preInstall
install -Dm444 -t $out/share/fonts/truetype *.ttf
install -Dm444 -t $woff2/share/fonts/woff2 *.woff2
runHook postInstall
'';
meta = {
description = "APL and BQN font extending on APL386";
homepage = "https://dzaima.github.io/BQN386/";
license = lib.licenses.unlicense;
maintainers = with lib.maintainers; [ skykanin ];
platforms = lib.platforms.all;
};
}