summaryrefslogtreecommitdiffstats
path: root/lass/2configs/mc.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lass/2configs/mc.nix')
-rw-r--r--lass/2configs/mc.nix25
1 files changed, 14 insertions, 11 deletions
diff --git a/lass/2configs/mc.nix b/lass/2configs/mc.nix
index 513ee1bd0..62fd52f3f 100644
--- a/lass/2configs/mc.nix
+++ b/lass/2configs/mc.nix
@@ -322,17 +322,20 @@ let
in {
environment.systemPackages = [
- (pkgs.concat "mc" [
- pkgs.mc
- (pkgs.writeDashBin "mc" ''
- export MC_DATADIR=${pkgs.writeOut "mc-ext" {
- "/mc.ext".link = mcExt;
- "/sfs.ini".text = "";
- }};
- export TERM=xterm-256color
- exec ${pkgs.mc}/bin/mc -S xoria256 "$@"
- '')
- ])
+ (pkgs.symlinkJoin {
+ name = "mc";
+ paths = [
+ pkgs.mc
+ (pkgs.writeDashBin "mc" ''
+ export MC_DATADIR=${pkgs.writeOut "mc-ext" {
+ "/mc.ext".link = mcExt;
+ "/sfs.ini".text = "";
+ }};
+ export TERM=xterm-256color
+ exec ${pkgs.mc}/bin/mc -S xoria256 "$@"
+ '')
+ ];
+ })
];
}