Browse Source

cleanup

main
kolaente 3 months ago
parent
commit
ae71b4550d
Signed by: konrad GPG Key ID: F40E70337AB24C9B
  1. 25
      default.nix

25
default.nix

@ -22,31 +22,6 @@ let
name = "vikunja-frontend-modules";
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;
};
in stdenv.mkDerivation {

Loading…
Cancel
Save