My Nix Configuration
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

[pkgs] planka: 2.0.0-rc.4 -> 2.0.3

dish 86fcc93e 0f820d72

+19 -23
+19 -23
packages/planka/package.nix
··· 10 10 python3, 11 11 makeBinaryWrapper, 12 12 node-gyp, 13 - node-pre-gyp, 14 13 }: 15 14 let 16 - version = "2.0.0-rc.4"; 15 + serverPython = python3.withPackages (ps: [ ps.apprise ]); 16 + 17 + version = "2.0.3"; 17 18 src = fetchFromGitHub { 18 19 owner = "plankanban"; 19 20 repo = "planka"; 20 21 tag = "v${version}"; 21 - hash = "sha256-RUOIOXrpoNGxoKwUlgkPsk4kTnA95E+iwYIjBzSBoTA="; 22 + hash = "sha256-hSBR2nsxMUm3lXWf5Te/LHS9KZoiWT7CaGf9xp4pvds="; 22 23 }; 23 24 meta = { 24 25 description = "Kanban-style project mastering tool for everyone"; ··· 40 41 41 42 npmDeps = fetchNpmDeps { 42 43 inherit (finalAttrs) src sourceRoot; 43 - hash = "sha256-XtVwO8253XBVtG0jrikeVr1yaS1PpphCbN5B6jz54qc="; 44 + npmDepsFetcherVersion = 2; 45 + hash = "sha256-YmuUXK+i7tXp4R+hsfq/sF3/FWZBmsm2qyDbzsDQkys="; 44 46 }; 45 47 46 48 npmFlags = [ 47 49 "--ignore-scripts" 50 + "--legacy-peer-deps" 48 51 ]; 49 52 50 53 nativeBuildInputs = [ ··· 64 67 65 68 npm run build 66 69 70 + npm run test 71 + 67 72 runHook postBuild 68 73 ''; 69 74 ··· 76 81 runHook postInstall 77 82 ''; 78 83 }); 79 - 80 - serverPython = python3.withPackages (ps: [ ps.apprise ]); 81 84 in 82 85 stdenv.mkDerivation (finalAttrs: { 83 86 pname = "planka"; ··· 87 90 88 91 npmDeps = fetchNpmDeps { 89 92 inherit (finalAttrs) src sourceRoot; 90 - hash = "sha256-yW9uzPALGdPrrUV129ToXayLyeLbAK9mCl2emCPYUdc="; 93 + npmDepsFetcherVersion = 2; 94 + hash = "sha256-nY1srVTS/VLa8FE3ppaKwvTsS4Tpe9qY/zJEvocw1g8="; 91 95 }; 92 96 93 97 npmFlags = [ "--ignore-scripts" ]; ··· 96 100 npmHooks.npmConfigHook 97 101 nodejs 98 102 makeBinaryWrapper 99 - node-pre-gyp 100 103 node-gyp 101 104 ]; 102 105 ··· 105 108 nodejs 106 109 ]; 107 110 108 - preBuild = '' 109 - # Patch notifs helper to use nixpkgs' python 110 - substituteInPlace api/helpers/utils/send-notifications.js \ 111 - --replace-fail '(`$' '(`' \ 112 - --replace-fail "{sails.config.appPath}/.venv/bin/python3" "${lib.getExe serverPython}" 113 - ''; 114 - 115 111 buildPhase = '' 116 112 runHook preBuild 117 113 ··· 129 125 mkdir -p $out/lib/node_modules/planka 130 126 mkdir $out/bin 131 127 mv * $out/lib/node_modules/planka 132 - rm -rf $out/lib/node_modules/planka/public 133 - cp -r ${frontend}/dist $out/lib/node_modules/planka/public 128 + cp -r ${frontend}/dist $out/lib/node_modules/planka/public/ 134 129 cp ${frontend}/dist/index.html $out/lib/node_modules/planka/views/index.html 135 130 136 131 # Build napi modules 137 - pushd $out/lib/node_modules/planka/node_modules/bcrypt 138 - node-pre-gyp install --build-from-source 139 - rm -rf build-tmp-napi-v3 140 - popd 141 132 pushd $out/lib/node_modules/planka/node_modules/lodepng 142 133 node-gyp configure 143 134 node-gyp build ··· 146 137 147 138 makeWrapper $out/lib/node_modules/planka/start.sh $out/bin/planka \ 148 139 --chdir $out/lib/node_modules/planka \ 149 - --set sails_paths__public $out/lib/node_modules/planka/public 140 + --set sails_paths__public $out/lib/node_modules/planka/public \ 141 + --set PYTHON_PATH ${lib.getExe serverPython} 150 142 151 143 runHook postInstall 152 144 ''; 153 145 154 - passthru.updateScript = nix-update-script { extraArgs = [ "--version=unstable" ]; }; 146 + passthru = { 147 + inherit frontend; 148 + updateScript = nix-update-script { extraArgs = [ "--version=unstable" ]; }; 149 + }; 150 + 155 151 meta = meta // { 156 152 mainProgram = "planka"; 157 153 };