stumpwm: Fix package conflict and HOME errors when loading modules
This commit is contained in:
parent
8c9384373d
commit
fa8d4324f6
|
@ -322,13 +322,27 @@ let
|
|||
};
|
||||
buildScript = pkgs.writeText "build-stumpwm.lisp" ''
|
||||
(load "${super.stumpwm.asdfFasl}/asdf.${super.stumpwm.faslExt}")
|
||||
(asdf:load-system 'stumpwm/build)
|
||||
|
||||
(asdf:load-system 'stumpwm)
|
||||
|
||||
;; Prevents package conflict error
|
||||
(when (uiop:version<= "3.1.5" (asdf:asdf-version))
|
||||
(uiop:symbol-call '#:asdf '#:register-immutable-system :stumpwm)
|
||||
(dolist (system-name (uiop:symbol-call '#:asdf
|
||||
'#:system-depends-on
|
||||
(asdf:find-system :stumpwm)))
|
||||
(uiop:symbol-call '#:asdf '#:register-immutable-system system-name)))
|
||||
|
||||
;; Prevents "cannot create /homeless-shelter" error
|
||||
(asdf:disable-output-translations)
|
||||
|
||||
(sb-ext:save-lisp-and-die
|
||||
"stumpwm"
|
||||
:executable t
|
||||
:purify t
|
||||
#+sb-core-compression :compression
|
||||
#+sb-core-compression t
|
||||
:toplevel #'stumpwm:main)
|
||||
:toplevel #'stumpwm:stumpwm)
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
|
|
Loading…
Reference in a new issue