Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions pkgs/by-name/pe/penpot-desktop/electron-package-lock.diff

This file was deleted.

24 changes: 9 additions & 15 deletions pkgs/by-name/pe/penpot-desktop/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
lib,
buildNpmPackage,
copyDesktopItems,
electron_33,
electron,
fetchFromGitHub,
jq,
makeDesktopItem,
Expand All @@ -15,29 +15,24 @@ let
description = "Unofficial desktop application for the open-source design tool, Penpot";
icon = "penpot";
nodejs = nodejs_22;
electron = electron_33;
in
buildNpmPackage rec {
pname = "penpot-desktop";
version = "0.10.0";
version = "0.11.0";

src = fetchFromGitHub {
owner = "author-more";
repo = "penpot-desktop";
tag = "v${version}";
hash = "sha256-KlTE61k5rl13GPpOznpugSn1hmn55Cd/Z9vhwDjWhPo=";
hash = "sha256-33LAhR0L7pAnS27dz5DuqgfUllyAFA9JVZRmrHoajE4=";
};

patches = [
./electron-package-lock.diff # this downgrades electron version from 34 to 33 to match the latest available version in nixpkgs
];

makeCacheWritable = true;
npmFlags = [
"--engine-strict"
"--legacy-peer-deps"
];
npmDepsHash = "sha256-DWZ1ih4i0vyYlShBWkJTCq0IKgT4CgEmvURnGoQiSy0=";
npmDepsHash = "sha256-BR51Oi9Ffxy7d0fBkSQ6Iz/PVi+ghIaLqzm3Loq6aDo=";
# Do not run the default build script as it leads to errors caused by the electron-builder configuration
dontNpmBuild = true;

Expand Down Expand Up @@ -81,11 +76,9 @@ buildNpmPackage rec {
--inherit-argv0

pushd build
for icon in icon.*; do
dir=$out/share/icons/hicolor/"''${icon%.*}"/apps
mkdir -p "$dir"
cp "$icon" "$dir"/${icon}.png
done
dir=$out/share/icons/hicolor/512x512/apps
mkdir -p "$dir"
cp icon.png "$dir"/${icon}.png
popd

runHook postInstall
Expand All @@ -105,10 +98,11 @@ buildNpmPackage rec {
meta = {
changelog = "https://github.com/author-more/penpot-desktop/releases/tag/v${version}";
inherit description;
homepage = "https://github.com/author-more/penpot.desktop";
homepage = "https://github.com/author-more/penpot-desktop";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ ntbbloodbath ];
platforms = electron.meta.platforms;
badPlatforms = lib.platforms.darwin;
mainProgram = "penpot-desktop";
};
}