nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 42 lines 1.0 kB view raw
1{ 2 lib, 3 buildNpmPackage, 4 vips, 5 pkg-config, 6 src, 7 version, 8 nixosTests, 9}: 10 11buildNpmPackage { 12 pname = "pingvin-share-frontend"; 13 inherit version; 14 15 src = "${src}/frontend"; 16 17 npmInstallFlags = [ "--build-from-source" ]; 18 installPhase = '' 19 cp -r . $out 20 ln -s $out/node_modules/.bin $out/bin 21 ''; 22 23 buildInputs = [ vips ]; 24 nativeBuildInputs = [ pkg-config ]; 25 26 npmDepsHash = "sha256-ykq98Bd67TY/t8JYraii7XnCIoSLk454decdHpQGorw="; 27 makeCacheWritable = true; 28 npmFlags = [ "--legacy-peer-deps" ]; 29 30 passthru.tests = { 31 pingvin-share = nixosTests.pingvin-share; 32 }; 33 34 meta = with lib; { 35 description = "Frontend of pingvin-share, a self-hosted file sharing platform"; 36 homepage = "https://github.com/stonith404/pingvin-share"; 37 downloadPage = "https://github.com/stonith404/pingvin-share/releases"; 38 changelog = "https://github.com/stonith404/pingvin-share/releases/tag/v${version}"; 39 license = licenses.bsd2; 40 maintainers = with maintainers; [ ratcornu ]; 41 }; 42}