8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
20 lines
506 B
Nix
20 lines
506 B
Nix
{ 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);
|
|
}
|