2022-08-12 12:06:08 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, makeWrapper
|
|
|
|
, caja-extensions
|
|
|
|
, caja
|
|
|
|
, extensions ? [ caja-extensions ]
|
|
|
|
, mateUpdateScript
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "${caja.pname}-with-extensions";
|
|
|
|
version = caja.version;
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
dontUnpack = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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);
|
|
|
|
}
|