This commit is contained in:
kolaente 2021-05-06 12:06:03 +02:00
parent f32cb421d5
commit ae71b4550d
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 0 additions and 25 deletions

View File

@ -22,31 +22,6 @@ let
name = "vikunja-frontend-modules"; name = "vikunja-frontend-modules";
inherit version src; inherit version src;
# cargo culted for node-sass
# https://github.com/input-output-hk/cardano-explorer/blob/7f28075951f248d2a5040dd30d8403f704474df6/nix/cardano-graphql/packages.nix
yarnPreBuild = ''
mkdir -p $HOME/.node-gyp/${nodejs.version}
echo 9 > $HOME/.node-gyp/${nodejs.version}/installVersion
ln -sfv ${nodejs}/include $HOME/.node-gyp/${nodejs.version}
'';
pkgConfig = {
node-sass = {
buildInputs = [ python2 pkg-config libsass ];
# https://github.com/moretea/yarn2nix/issues/12#issuecomment-545084619
postInstall = ''
LIBSASS_EXT=auto yarn --offline run build
rm build/config.gypi
'';
};
};
preInstall = ''
# for some reason the two node_modules have non-overlapping contents
cp -r deps/vikunja-frontend/node_modules/* node_modules/
chmod -R a+w node_modules/
'';
doDist = false; doDist = false;
}; };
in stdenv.mkDerivation { in stdenv.mkDerivation {