9 # Broken on newer versions:
10 # "https://gitlab.common-lisp.net/clpm/clpm/-/issues/51". Once that bug is
11 # fixed, remove this, and all 2.1.9 references from the SBCL build file.
13 sbcl_2_1_9 = sbcl.override (_: {
19 stdenv.mkDerivation rec {
24 url = "https://gitlab.common-lisp.net/clpm/clpm";
26 fetchSubmodules = true;
27 sha256 = "sha256-UhaLmbdsIPj6O+s262HUMxuz/5t43JR+TlOjq8Y2CDs=";
30 propagatedBuildInputs = [
35 # patch cl-plus-ssl to ensure that it finds libssl and libcrypto
36 sed 's|libssl.so|${lib.getLib openssl}/lib/libssl.so|' -i ext/cl-plus-ssl/src/reload.lisp
37 sed 's|libcrypto.so|${lib.getLib openssl}/lib/libcrypto.so|' -i ext/cl-plus-ssl/src/reload.lisp
38 # patch dexador to avoid error due to dexador being loaded multiple times
39 sed -i 's/defpackage/uiop:define-package/g' ext/dexador/src/dexador.lisp
45 # exporting home to avoid using /homeless-shelter/.cache/ as this will cause
46 # ld to complaing about `impure path used in link`.
49 ${sbcl_2_1_9}/bin/sbcl --script scripts/build-release.lisp
57 cd build/release-staging/dynamic/clpm-${version}*/
58 INSTALL_ROOT=$out/ bash install.sh
63 # Stripping binaries results in fatal error in SBCL, `Can't find sbcl.core`
67 description = "Common Lisp Package Manager";
68 homepage = "https://www.clpm.dev/";
69 license = licenses.bsd2;
70 maintainers = [ maintainers.petterstorvik ];
71 platforms = [ "i686-linux" "x86_64-linux" ];