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