mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 02:53:55 +00:00
30 lines
526 B
Nix
30 lines
526 B
Nix
{ stdenv
|
|
, lib
|
|
, makeWrapper
|
|
, caja-extensions
|
|
, caja
|
|
, extensions ? [ caja-extensions ]
|
|
, mateUpdateScript
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "${caja.pname}-with-extensions";
|
|
version = caja.version;
|
|
|
|
dontUnpack = true;
|
|
|
|
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);
|
|
}
|