From 256a9ddbea2118ea3bfbae1175972c6dcfd65703 Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Thu, 24 Aug 2023 13:33:33 -0500 Subject: [PATCH] first --- .gitignore | 1 + flake.lock | 60 +++++++++++++++++++++++++++++++++++++++++++ flake.nix | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 136 insertions(+) create mode 100644 .gitignore create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d6944e3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/result* diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..fe9f12a --- /dev/null +++ b/flake.lock @@ -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 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..579d6c0 --- /dev/null +++ b/flake.nix @@ -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. + ''; + }; + }; + + }; + } + ); +}