megapixels-next: ship

i can't get any camera working on actually-mainline linux. i'm hoping megapixels-next will work with fewer patches, though
This commit is contained in:
2024-09-11 03:44:08 +00:00
parent 2407e51b67
commit f5a64bc913
3 changed files with 19 additions and 0 deletions

View File

@@ -348,6 +348,7 @@ in
"koreader"
"lgtrombetta-compass"
"megapixels" # camera app
"megapixels-next" # camera app
"notejot" # note taking, e.g. shopping list
"planify" # todo-tracker/planner
"portfolio-filemanager"

View File

@@ -101,6 +101,7 @@
./loupe.nix
./mako.nix
./megapixels.nix
./megapixels-next.nix
./mepo.nix
./mimeo
./mimetype.nix

View File

@@ -0,0 +1,17 @@
# mostly here for testing.
# megapixels branching is weird, and their stable releases are cut from a commit which diverged well over a year ago IIRC.
# state as of 2024-09-10:
# - when run against linux-postmarketos-allwinner: renders camera preview image, but crashes on save.
{ pkgs, ... }:
{
sane.programs.megapixels-next = {
packageUnwrapped = pkgs.megapixels-next.overrideAttrs (base: {
# rename things so i can have `megapixels` and `megapixels-next` co-installed
postInstall = (base.postInstall or "") + ''
mv $out/bin/megapixels $out/bin/megapixels-next
rm $out/share/applications/me.gapixels.Megapixels.desktop
'';
});
};
}