Add photocraft

This commit is contained in:
Armel van Ravels committed 2026-10-12 10:26:14 +02:00
1 parent f5f6177f88
commit eb806610b5
4 files changed
+64

No files matched your search

+1
View File
@@ -32,6 +32,7 @@
../../modules/cursor-cli.nix
../../modules/git-churn.nix
../../modules/ai-usage.nix
../../modules/photocraft.nix
];
boot.kernelPackages = pkgs.linuxPackages_latest;
+11
View File
@@ -1 +1,12 @@
{ pkgs, ai-usage, home-manager, ... }:
{
home-manager.users.avravels = {
imports = [ ai-usage.homeManagerModules.default ];
programs.ai-usage = {
enable = true;
package = ai-usage.packages.${pkgs.stdenv.hostPlatform.system}.default;
};
};
}
+7
View File
@@ -0,0 +1,7 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
(pkgs.callPackage ../packages/photocraft.nix { })
];
}
+45
View File
@@ -0,0 +1,45 @@
{ lib
, appimageTools
, fetchurl
,
}:
let
pname = "photocraft";
version = "0.7.0";
src = fetchurl {
url = "https://github.com/storytold/photocraft/releases/download/v${version}/photocraft-${version}-linux-x86_64.AppImage";
hash = "sha256-h+vONrzfazHRapyiLOKfmtjbaBheTZgRiADRwt54rEI=";
};
in
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
install -Dm644 ${src} $out/share/${pname}/source.AppImage
mkdir -p $out/share/applications
cat > $out/share/applications/${pname}.desktop <<EOF
[Desktop Entry]
Name=PhotoCraft
Comment=Open-source image editor
Exec=${pname} %F
Terminal=false
Type=Application
Categories=Graphics;RasterGraphics;
StartupNotify=true
EOF
'';
meta = {
description = "Open-source image editor";
homepage = "https://github.com/storytold/photocraft";
downloadPage = "https://github.com/storytold/photocraft/releases";
license = lib.licenses.mit;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
platforms = [ "x86_64-linux" ];
mainProgram = "photocraft";
};
}