nixpkgs/pkgs/desktops/mate/caja/cajaWithExtensions.nix
2017-08-18 00:19:58 -03:00

12 lines
391 B
Nix

{ buildEnv, makeWrapper, caja, extensions ? [] }:
buildEnv {
name = "cajaWithExtensions-${caja.version}";
meta = caja.meta // { description = "File manager (including extensions) for the MATE desktop"; };
paths = [ caja ] ++ extensions;
buildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram "$out/bin/caja" --set CAJA_EXTENSION_DIRS "$out/lib/caja/extensions-2.0"
'';
}