3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/mate/caja-with-extensions/default.nix

21 lines
506 B
Nix
Raw Normal View History

2019-06-03 14:36:25 +01:00
{ 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);
}