summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-03-07 22:56:25 +0100
committerlassulus <lass@lassul.us>2017-03-07 22:56:40 +0100
commit8e490fa31dfb7c1401ab486784cf99bfe4f01b7d (patch)
treee65cd1ac72e280d7b8288c870bc83a3c903d4bac /lass
parentbcebd13d9f3b8cf1f117d0cddf10dfdd4181214d (diff)
l 2 mc: use concat
Diffstat (limited to 'lass')
-rw-r--r--lass/2configs/mc.nix20
1 files changed, 13 insertions, 7 deletions
diff --git a/lass/2configs/mc.nix b/lass/2configs/mc.nix
index b7d5a4ceb..fc347ba3c 100644
--- a/lass/2configs/mc.nix
+++ b/lass/2configs/mc.nix
@@ -322,13 +322,19 @@ let
in {
environment.systemPackages = [
- (pkgs.lib.overrideDerivation pkgs.mc (original : {
- postInstall = ''
- rm -f $out/etc/mc/mc.ext
- ln -s ${mcExt} $out/etc/mc/mc.ext
- cp $out/share/mc/skins/nicedark.ini $out/share/mc/skins/default.ini
- '';
- }))
+ (pkgs.concat "mc" [
+ pkgs.mc
+ (pkgs.writeDashBin "mc" ''
+ export MC_DATADIR=${pkgs.concat "mc-datadir" [
+ (pkgs.writeOut "mc-ext" {
+ "/mc.ext".link = mcExt;
+ "/sfs.ini".text = "";
+ })
+ ]}
+ export TERM=xterm-256color
+ exec ${pkgs.mc}/bin/mc -S xoria256 "$@"
+ '')
+ ])
];
}