about summary refs log tree commit diff
path: root/pkgs/desktops/mate/caja-with-extensions/default.nix
blob: 35e3cd198f6bf9daf77eef3cf59ede4d0c481a69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ stdenv, lib, makeWrapper, caja-extensions, caja, extensions ? [ caja-extensions ] }:

stdenv.mkDerivation {
  pname = "${caja.pname}-with-extensions";
  version = caja.version;

  phases = [ "installPhase" ];

  nativeBuildInputs = [ makeWrapper ];

  inherit caja;

  installPhase = ''
    mkdir -p $out/bin
    makeWrapper $caja/bin/caja $out/bin/caja \
    --set CAJA_EXTENSION_DIRS ${lib.concatMapStringsSep ":" (x: "${x.outPath}/lib/caja/extensions-2.0") extensions}
  '';

  inherit (caja.meta);
}