2017-08-01 03:29:53 +01:00
|
|
|
{stdenv, clwrapper, pkgs, sbcl, coreutils, nix, asdf}:
|
2013-10-13 07:57:30 +01:00
|
|
|
let lispPackages = rec {
|
|
|
|
inherit pkgs clwrapper stdenv;
|
|
|
|
nixLib = pkgs.lib;
|
|
|
|
callPackage = nixLib.callPackageWith lispPackages;
|
|
|
|
|
|
|
|
buildLispPackage = callPackage ./define-package.nix;
|
|
|
|
|
2016-03-25 16:57:45 +00:00
|
|
|
quicklisp = buildLispPackage rec {
|
|
|
|
baseName = "quicklisp";
|
2020-03-15 21:32:17 +00:00
|
|
|
version = "2019-02-16";
|
2017-04-01 07:08:02 +01:00
|
|
|
|
2017-08-01 03:29:53 +01:00
|
|
|
buildSystems = [];
|
2017-04-01 07:08:02 +01:00
|
|
|
|
2016-03-25 16:57:45 +00:00
|
|
|
description = "The Common Lisp package manager";
|
|
|
|
deps = [];
|
|
|
|
src = pkgs.fetchgit {
|
|
|
|
url = "https://github.com/quicklisp/quicklisp-client/";
|
|
|
|
rev = "refs/tags/version-${version}";
|
2020-03-15 21:32:17 +00:00
|
|
|
sha256 = "0x9b4vf36n2hh102gqgjxg5f5ymxcr9j5khn4rskjdprfgd8d1y9";
|
2016-03-25 16:57:45 +00:00
|
|
|
};
|
|
|
|
overrides = x: rec {
|
|
|
|
inherit clwrapper;
|
|
|
|
quicklispdist = pkgs.fetchurl {
|
|
|
|
# Will usually be replaced with a fresh version anyway, but needs to be
|
|
|
|
# a valid distinfo.txt
|
2020-10-24 09:32:58 +01:00
|
|
|
url = "https://beta.quicklisp.org/dist/quicklisp/2020-10-16/distinfo.txt";
|
|
|
|
sha256 = "sha256:090xjcnyqcv8az9n1a7m0f6vzz2nwcncy95ha7ixb7fnd2rj1n65";
|
2016-03-25 16:57:45 +00:00
|
|
|
};
|
|
|
|
buildPhase = '' true; '';
|
|
|
|
postInstall = ''
|
|
|
|
substituteAll ${./quicklisp.sh} "$out"/bin/quicklisp
|
|
|
|
chmod a+x "$out"/bin/quicklisp
|
|
|
|
cp "${quicklispdist}" "$out/lib/common-lisp/quicklisp/quicklisp-distinfo.txt"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
2017-08-01 03:29:53 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
quicklisp-to-nix-system-info = stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "quicklisp-to-nix-system-info";
|
2017-08-01 03:29:53 +01:00
|
|
|
version = "1.0.0";
|
|
|
|
src = ./quicklisp-to-nix;
|
|
|
|
nativeBuildInputs = [sbcl];
|
|
|
|
buildInputs = [
|
|
|
|
lispPackages.quicklisp coreutils
|
|
|
|
];
|
|
|
|
touch = coreutils;
|
|
|
|
nix-prefetch-url = nix;
|
|
|
|
inherit quicklisp;
|
|
|
|
buildPhase = ''
|
|
|
|
${sbcl}/bin/sbcl --eval '(load #P"${asdf}/lib/common-lisp/asdf/build/asdf.lisp")' --load $src/system-info.lisp --eval '(ql-to-nix-system-info::dump-image)'
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp quicklisp-to-nix-system-info $out/bin
|
|
|
|
'';
|
|
|
|
dontStrip = true;
|
|
|
|
};
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
quicklisp-to-nix = stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "quicklisp-to-nix";
|
2017-08-01 03:29:53 +01:00
|
|
|
version = "1.0.0";
|
|
|
|
src = ./quicklisp-to-nix;
|
|
|
|
buildDependencies = [sbcl quicklisp-to-nix-system-info];
|
2017-09-04 17:58:56 +01:00
|
|
|
buildInputs = with pkgs.lispPackages; [md5 cl-emb alexandria external-program];
|
2017-08-01 03:29:53 +01:00
|
|
|
touch = coreutils;
|
|
|
|
nix-prefetch-url = nix;
|
|
|
|
inherit quicklisp;
|
|
|
|
deps = [];
|
|
|
|
system-info = quicklisp-to-nix-system-info;
|
|
|
|
buildPhase = ''
|
2017-12-19 16:55:22 +00:00
|
|
|
${clwrapper}/bin/cl-wrapper.sh "${sbcl}/bin/sbcl" --eval '(load #P"${asdf}/lib/common-lisp/asdf/build/asdf.lisp")' --load $src/ql-to-nix.lisp --eval '(ql-to-nix::dump-image)'
|
2017-08-01 03:29:53 +01:00
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp quicklisp-to-nix $out/bin
|
|
|
|
'';
|
|
|
|
dontStrip = true;
|
|
|
|
};
|
2020-10-24 11:15:16 +01:00
|
|
|
|
|
|
|
clx-truetype = buildLispPackage rec {
|
|
|
|
baseName = "clx-truetype";
|
|
|
|
version = ''20160825-git'';
|
|
|
|
|
|
|
|
buildSystems = [ "clx-truetype" ];
|
|
|
|
parasites = [ "clx-truetype-test" ];
|
|
|
|
|
|
|
|
description = ''clx-truetype is pure common lisp solution for antialiased TrueType font rendering using CLX and XRender extension.'';
|
|
|
|
deps = with pkgs.lispPackages; [
|
|
|
|
alexandria bordeaux-threads cl-aa cl-fad cl-paths cl-paths-ttf cl-store
|
|
|
|
cl-vectors clx trivial-features zpb-ttf
|
|
|
|
];
|
|
|
|
src = pkgs.fetchurl {
|
|
|
|
url = ''http://beta.quicklisp.org/archive/clx-truetype/2016-08-25/clx-truetype-20160825-git.tgz'';
|
|
|
|
sha256 = ''0ndy067rg9w6636gxwlpnw7f3ck9nrnjb03444pprik9r3c9in67'';
|
|
|
|
};
|
|
|
|
|
|
|
|
packageName = "clx-truetype";
|
|
|
|
|
|
|
|
asdFilesToKeep = ["clx-truetype.asd"];
|
|
|
|
};
|
2020-10-24 22:04:20 +01:00
|
|
|
cluffer = buildLispPackage rec {
|
|
|
|
baseName = "cluffer";
|
|
|
|
version = "2018-09-24";
|
|
|
|
|
|
|
|
buildSystems = [ "cluffer-base" "cluffer-simple-buffer" "cluffer-simple-line" "cluffer-standard-buffer" "cluffer-standard-line" "cluffer" ];
|
|
|
|
parasites = [ "cluffer-test" ];
|
|
|
|
|
|
|
|
description = "General purpose text-editor buffer";
|
|
|
|
deps = with pkgs.lispPackages; [
|
|
|
|
acclimation clump
|
|
|
|
];
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "robert-strandh";
|
|
|
|
repo = "cluffer";
|
|
|
|
rev = "4aad29c276a58a593064e79972ee4d77cae0af4a";
|
|
|
|
sha256 = "1bcg13g7qb3dr8z50aihdjqa6miz5ivlc9wsj2csgv1km1mak2kj";
|
|
|
|
# date = 2018-09-24T04:45:36+02:00;
|
|
|
|
};
|
|
|
|
|
|
|
|
packageName = "cluffer";
|
|
|
|
|
|
|
|
asdFilesToKeep = [ "cluffer.asd" "cluffer-base.asd" "cluffer-simple-buffer.asd" "cluffer-simple-line.asd" "cluffer-standard-buffer.asd" "cluffer-standard-line.asd" ];
|
|
|
|
};
|
2020-10-24 22:24:50 +01:00
|
|
|
nyxt = pkgs.lispPackages.buildLispPackage rec {
|
|
|
|
baseName = "nyxt";
|
|
|
|
version = "2020-10-23";
|
|
|
|
|
|
|
|
buildSystems = [ "nyxt" "nyxt-ext" ];
|
|
|
|
|
|
|
|
description = "Browser";
|
2020-10-25 00:30:44 +01:00
|
|
|
|
|
|
|
overrides = x: {
|
|
|
|
postInstall = ''
|
|
|
|
echo "Building nyxt binary"
|
|
|
|
NIX_LISP_PRELAUNCH_HOOK='
|
|
|
|
nix_lisp_build_system nyxt/gtk-application \
|
|
|
|
"(asdf/system:component-entry-point (asdf:find-system :nyxt/gtk-application))" \
|
|
|
|
"" "(format *error-output* \"Alien objects:~%~s~%\" sb-alien::*shared-objects*)"
|
|
|
|
' "$out/bin/nyxt-lisp-launcher.sh"
|
|
|
|
cp "$out/lib/common-lisp/nyxt/nyxt" "$out/bin/"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2020-10-24 22:24:50 +01:00
|
|
|
deps = with pkgs.lispPackages; [
|
|
|
|
alexandria
|
|
|
|
bordeaux-threads
|
|
|
|
chanl
|
|
|
|
cl-annot
|
|
|
|
cl-ansi-text
|
|
|
|
cl-containers
|
|
|
|
cl-css
|
|
|
|
cl-json
|
|
|
|
cl-markup
|
|
|
|
cl-ppcre
|
|
|
|
cl-ppcre-unicode
|
|
|
|
cl-prevalence
|
|
|
|
cl-webkit2
|
|
|
|
closer-mop
|
|
|
|
cluffer
|
|
|
|
dbus
|
|
|
|
dexador
|
|
|
|
enchant
|
|
|
|
fset
|
|
|
|
hu_dot_dwim_dot_defclass-star
|
|
|
|
ironclad
|
|
|
|
local-time
|
|
|
|
log4cl
|
|
|
|
lparallel
|
|
|
|
mk-string-metrics
|
|
|
|
osicat
|
|
|
|
parenscript
|
|
|
|
plump
|
|
|
|
prove-asdf
|
|
|
|
quri
|
|
|
|
serapeum
|
|
|
|
sqlite
|
|
|
|
str
|
|
|
|
swank
|
|
|
|
trivia
|
|
|
|
trivial-clipboard
|
|
|
|
trivial-features
|
|
|
|
trivial-package-local-nicknames
|
|
|
|
trivial-types
|
|
|
|
unix-opts
|
|
|
|
];
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "atlas-engineer";
|
|
|
|
repo = "nyxt";
|
|
|
|
rev = "f744af5233b3636460ce71650de2b0c7dcb9fa8e";
|
|
|
|
sha256 = "1m4jic7nbm2jmxlm8k0zqg62z91g2f2s86by086brgfw056idjmz";
|
|
|
|
# date = 2020-10-23T19:06:04+02:00;
|
|
|
|
};
|
|
|
|
|
|
|
|
packageName = "nyxt";
|
|
|
|
|
|
|
|
asdFilesToKeep = [ "nyxt.asd" "nyxt-ext.asd" ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pkgs.libressl.out
|
|
|
|
pkgs.webkitgtk
|
|
|
|
pkgs.sbcl
|
|
|
|
];
|
|
|
|
};
|
2013-10-13 07:57:30 +01:00
|
|
|
};
|
|
|
|
in lispPackages
|