Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 55 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ lib, fetchzip, fetchYarnDeps, yarn2nix-moretea, nodejs_20, dos2unix,}:
yarn2nix-moretea.mkYarnPackage { version = "1.1.48";
src = fetchzip { url = "https://registry.npmjs.org/meshcentral/-/meshcentral-1.1.48.tgz"; sha256 = "0ns4pp0gswvfpyjzklsh76ych9sv9qjcn50dhain7b6cy6dkrmga"; };
patches = [ ./fix-js-include-paths.patch ];
packageJSON = ./package.json; yarnLock = ./yarn.lock;
offlineCache = fetchYarnDeps { yarnLock = ./yarn.lock; hash = "sha256-oHY21OMLVyrdJOiV9MarXWnjcKNaKtvUz26xIvVNRsw="; };
# Tarball has CRLF line endings. This makes patching difficult, so let's convert them. nativeBuildInputs = [ dos2unix ]; prePatch = '' find . -name '*.js' -exec dos2unix {} + ln -snf meshcentral.js bin/meshcentral '';
preFixup = '' mkdir -p $out/bin chmod a+x $out/libexec/meshcentral/deps/meshcentral/meshcentral.js sed -i '1i#!${nodejs_20}/bin/node' $out/libexec/meshcentral/deps/meshcentral/meshcentral.js ln -s $out/libexec/meshcentral/deps/meshcentral/meshcentral.js $out/bin/meshcentral '';
publishBinsFor = [ ];
passthru.updateScript = ./update.sh;
meta = with lib; { description = "Computer management web app"; homepage = "https://meshcentral.com/"; maintainers = with maintainers; [ ma27 ]; license = licenses.asl20; mainProgram = "meshcentral"; };}