This commit is contained in:
Jeffrey C. Ollie 2023-08-24 13:33:33 -05:00
commit 256a9ddbea
No known key found for this signature in database
GPG key ID: F936E4DCB7E25F15
3 changed files with 136 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/result*

60
flake.lock Normal file
View file

@ -0,0 +1,60 @@
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1692799911,
"narHash": "sha256-3eihraek4qL744EvQXsK1Ha6C3CR7nnT8X2qWap4RNk=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "f9e7cf818399d17d347f847525c5a5a8032e4e44",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1692794066,
"narHash": "sha256-H0aG8r16dj0x/Wz6wQhQxc9V7AsObOiHPaKxQgH6Y08=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "fc944919f743bb22379dddf18dcb72db6cff84aa",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-23.05",
"type": "indirect"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

75
flake.nix Normal file
View file

@ -0,0 +1,75 @@
{
description = "Annotator";
inputs = {
nixpkgs = {
url = "nixpkgs/nixos-23.05";
};
flake-utils = {
url = "github:numtide/flake-utils";
};
};
outputs = { self, nixpkgs, flake-utils, ... }@inputs:
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs {
inherit system;
};
in
{
packages = {
annotator =
let
pname = "annotator";
version = "1.2.1";
in
pkgs.stdenv.mkDerivation {
inherit pname version;
src = pkgs.fetchFromGitHub {
owner = "phase1geo";
repo = "Annotator";
rev = version;
hash = "sha256-VHvznkGvrE8o9qq+ijrIStSavq46dS8BqclWEWZ8mG8=";
};
buildInputs = [
pkgs.glib
pkgs.gtk3
pkgs.libgee
pkgs.libhandy
pkgs.libxml2
pkgs.pantheon.granite
];
nativeBuildInputs = [
pkgs.desktop-file-utils
pkgs.meson
pkgs.ninja
pkgs.pkgconfig
pkgs.vala
pkgs.wrapGAppsHook
];
meta = {
homepage = "https://github.com/phase1geo/Annotator";
description = "Image annotation for Elementary OS ";
longDescription = ''
Annotate your images and let a picture say 1000 words.
* Load image from the file system or clipboard.
* Add shapes, stickers, text, drawings, and other callouts to highlight image details.
* Add magnifiers to enhance image details.
* Blur out portions of the image to obfuscate data.
* Crop, resize and add image borders.
* Control colors, line thickness and font details.
* Zoom support.
* Unlimited undo/redo of any change.
* Export to JPEG, PNG, TIFF, BMP, PDF and SVG image formats.
* Support for copying annotated image to clipboard.
* Printer support.
'';
};
};
};
}
);
}