summaryrefslogtreecommitdiffstats
path: root/lass/2configs/mc.nix
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-06-20 19:31:19 +0200
committerlassulus <lass@lassul.us>2017-06-20 19:31:19 +0200
commit915ccf6ee26688be9daf37a6083b91be95cae024 (patch)
tree18dd85796c90fe7898a2b3a8e8c505ea672598a3 /lass/2configs/mc.nix
parentfbabdb5081366e295fb10a2486fcc66e43a20ed1 (diff)
parenta9f4ad7586bfb543cdcdeacf93b71bdce506621a (diff)
Merge remote-tracking branch 'ni/master'
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 "$@"
+ '')
+ ];
+ })
];
}