karakeep: insert full path to (gnu)tar in CLI command
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
testers,
|
||||
nodejs,
|
||||
node-gyp,
|
||||
gnutar,
|
||||
inter,
|
||||
python3,
|
||||
srcOnly,
|
||||
@@ -31,8 +32,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
./patches/use-local-font.patch
|
||||
./patches/dont-lock-pnpm-version.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
ln -s ${inter}/share/fonts/truetype ./apps/web/app/fonts
|
||||
|
||||
substituteInPlace apps/cli/src/commands/dump.ts \
|
||||
--replace-fail 'spawn("tar"' 'spawn("${lib.getExe gnutar}"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -41,6 +46,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
node-gyp
|
||||
pnpm.configHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gnutar
|
||||
];
|
||||
|
||||
pnpmDeps = pnpm.fetchDeps {
|
||||
inherit (finalAttrs) pname version;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user