-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
excalidraw_export: init at v1.1.0 #341078
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21973,6 +21973,12 @@ | |
githubId = 2856634; | ||
name = "Tyler Compton"; | ||
}; | ||
venikx = { | ||
email = "[email protected]"; | ||
github = "venikx"; | ||
githubId = 24815061; | ||
name = "Kevin De Baerdemaeker"; | ||
}; | ||
veprbl = { | ||
email = "[email protected]"; | ||
github = "veprbl"; | ||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,38 @@ | ||||||||||||||||||||
{ | ||||||||||||||||||||
lib, | ||||||||||||||||||||
buildNpmPackage, | ||||||||||||||||||||
fetchFromGitHub, | ||||||||||||||||||||
cairo, | ||||||||||||||||||||
pango, | ||||||||||||||||||||
pkg-config, | ||||||||||||||||||||
}: | ||||||||||||||||||||
|
||||||||||||||||||||
buildNpmPackage rec { | ||||||||||||||||||||
pname = "excalidraw_export"; | ||||||||||||||||||||
version = "1.1.0"; | ||||||||||||||||||||
|
||||||||||||||||||||
src = fetchFromGitHub { | ||||||||||||||||||||
owner = "Timmmm"; | ||||||||||||||||||||
repo = "excalidraw_export"; | ||||||||||||||||||||
rev = "320c8be92f468e5e19564f83e37709b80afc0e46"; | ||||||||||||||||||||
hash = "sha256-E5kYI8+hzObd2WNVBd0aQDKMH1Sns539loCQfClJs1Q="; | ||||||||||||||||||||
}; | ||||||||||||||||||||
|
||||||||||||||||||||
npmDepsHash = "sha256-5yec7BCi1c/e+y00TqxIeoazs49+WdKdfsskAqnVkFs="; | ||||||||||||||||||||
|
||||||||||||||||||||
npmBuildScript = "compile"; | ||||||||||||||||||||
|
||||||||||||||||||||
buildInputs = [ | ||||||||||||||||||||
cairo | ||||||||||||||||||||
pango | ||||||||||||||||||||
]; | ||||||||||||||||||||
nativeBuildInputs = [ pkg-config ]; | ||||||||||||||||||||
|
||||||||||||||||||||
meta = { | ||||||||||||||||||||
description = "CLI to export Excalidraw drawings to SVG and PDF"; | ||||||||||||||||||||
homepage = "https://github.com/Timmmm/excalidraw_export"; | ||||||||||||||||||||
license = lib.licenses.mit; | ||||||||||||||||||||
maintainers = with lib.maintainers; [ venikx ]; | ||||||||||||||||||||
mainProgram = "excalidraw_export"; | ||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I noticed the darwin builds are failing, and I don't have a darwin machine. I guess it would be better practice to limit the platforms?
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That would work, but if Darwin builds are supported upstream, but are broken locally (at the Nixpkgs level), setting There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I am not sure if I fully understand this. With upstream, do you mean the original library, so in this case https://github.com/Timmmm/excalidraw_export? If yes, from what I understand, macOS should be supported by it, but I think it needs to be built differently (the canvas internal deps, requires some binaries to exist in the environment, and I added them for linux, but not sure for darwin). The last thing you mentioned, would look like this?
Suggested change
|
||||||||||||||||||||
}; | ||||||||||||||||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary? I can't find any references to it in the upstream source, though maybe I didn't look deep enough into its dependencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's needed since one of the dependencies depends on some binaries being on built on the system. Without it, the installation seems to fail. I might be misunderstanding something though, but at least with it, it seems to work.