mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-30 17:49:58 +03:00
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 New Issue
Block a user