2189cff663
GitOrigin-RevId: 1fe6ed37fd9beb92afe90671c0c2a662a03463dd
20 lines
524 B
Nix
20 lines
524 B
Nix
{ stdenv, lib, makeWrapper, caja-extensions, caja, extensions ? [ caja-extensions ], mateUpdateScript }:
|
|
|
|
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);
|
|
}
|