···44074407 mktplcRef = {
44084408 publisher = "shd101wyy";
44094409 name = "markdown-preview-enhanced";
44104410- version = "0.8.15";
44114411- hash = "sha256-aW2Ri73xIl/1q/Yoi5qg25fjx7l55QfXAn+M+JuoN+A=";
44104410+ version = "0.8.18";
44114411+ hash = "sha256-BHLFlhcIXm3mvmjDPu3fuzpJIGHQvT/RDBEE/QFoRvU=";
44124412 };
44134413 meta = {
44144414 description = "Provides a live preview of markdown using either markdown-it or pandoc";
···128128 ];
129129130130 meta = with lib; {
131131- description = "Desktop application for creating diagrams";
131131+ description = "Desktop version of draw.io for creating diagrams";
132132 homepage = "https://about.draw.io/";
133133 license = with lib.licenses; [
134134 # The LICENSE file of https://github.com/jgraph/drawio claims Apache License Version 2.0 again since https://github.com/jgraph/drawio/commit/5b2e73471e4fea83d681f0cec5d1aaf7c3884996
+1-1
pkgs/applications/graphics/drawio/headless.nix
···3333 meta = with lib; {
3434 description = "xvfb wrapper around drawio";
3535 longDescription = ''
3636- A wrapper around drawio for running in headless environments.
3636+ A wrapper around drawio (draw.io) for running in headless environments.
3737 Runs drawio under xvfb-run, with configuration going to a temporary
3838 directory.
3939 '';
···11+{
22+ stdenv,
33+ lib,
44+ buildNpmPackage,
55+ fetchFromGitHub,
66+ versionCheckHook,
77+ nix-update-script,
88+}:
99+1010+buildNpmPackage (finalAttrs: {
1111+ pname = "filen-cli";
1212+ version = "0.0.29";
1313+1414+ src = fetchFromGitHub {
1515+ owner = "FilenCloudDienste";
1616+ repo = "filen-cli";
1717+ tag = "v${finalAttrs.version}";
1818+ hash = "sha256-ftbRv75x6o1HgElY4oLBBe5SRuLtxdrjpjZznSCyroI=";
1919+ };
2020+2121+ npmDepsHash = "sha256-a+sq0vFsk4c7bl0Nn2KfBFxyq3ZF2HPvt8d1vxegnHg=";
2222+2323+ postPatch = ''
2424+ # The filen-cli repository does not contain the correct version string;
2525+ # it is replaced during publishing in the same way:
2626+ # https://github.com/FilenCloudDienste/filen-cli/blob/c7d5eb2a2cd6d514321992815f16475f6909af36/.github/workflows/build-and-publish.yml#L24
2727+ substituteInPlace package.json \
2828+ --replace-fail '"version": "0.0.0"' '"version": "${finalAttrs.version}"'
2929+ '';
3030+3131+ # A special random 256-bit string called CRYPTO_BASE_KEY has to be injected
3232+ # during build. It can be randomly generated using the generateKey.mjs
3333+ # script, however, generating a key here will invalidate the session on every
3434+ # rebuild, and hence we need to provide a constant key. The key below is
3535+ # extracted from the official filen-cli releases. Example:
3636+ # $ strings filen-cli-v0.0.29-linux-x64 | grep checkInjectedBuildInfo -A 6
3737+ # That also makes the session data compatible with the official distribution.
3838+ env.FILEN_CLI_CRYPTO_BASE_KEY = "f47fb2011c90d8aad21f7415d19989cea2c1ac8bc674daf36af48de8697a83e0";
3939+4040+ nativeInstallCheckInputs = [ versionCheckHook ];
4141+ versionCheckProgram = "${placeholder "out"}/bin/filen";
4242+ versionCheckProgramArg = [ "--version" ];
4343+4444+ # Writes $HOME/Library/Application Support on darwin
4545+ doInstallCheck = !stdenv.hostPlatform.isDarwin;
4646+4747+ passthru.updateScript = nix-update-script {
4848+ extraArgs = [ "--version-regex=^v([0-9.]+)$" ];
4949+ };
5050+5151+ meta = {
5252+ description = "CLI tool for interacting with the Filen cloud";
5353+ homepage = "https://github.com/FilenCloudDienste/filen-cli";
5454+ changelog = "https://github.com/FilenCloudDienste/filen-cli/releases/tag/v${finalAttrs.version}";
5555+ license = lib.licenses.agpl3Only;
5656+ maintainers = with lib.maintainers; [ eilvelia ];
5757+ mainProgram = "filen";
5858+ };
5959+})
···201201 self_attribute_name = "git";
202202 };
203203204204- latest = self.nix_2_25;
204204+ latest = self.nix_2_26;
205205206206 # The minimum Nix version supported by Nixpkgs
207207 # Note that some functionality *might* have been backported into this Nix version,