mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-19 14:20:19 +00:00
40 lines
534 B
Nix
40 lines
534 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
pdfium,
|
|
replaceVars,
|
|
}:
|
|
|
|
{ version, src, ... }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "printing";
|
|
inherit version src;
|
|
inherit (src) passthru;
|
|
|
|
prePatch = ''
|
|
if [ -d printing ]; then pushd printing; fi
|
|
'';
|
|
|
|
patches = [
|
|
(replaceVars ./printing.patch {
|
|
pdfiumLib = lib.getLib pdfium;
|
|
pdfiumDev = lib.getDev pdfium;
|
|
})
|
|
];
|
|
|
|
postPatch = ''
|
|
popd || true
|
|
'';
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
cp -r . $out
|
|
|
|
runHook postInstall
|
|
'';
|
|
}
|