Add Nix flake for annotated Loupe
This commit is contained in:
parent
25a42b9164
commit
f65d5548de
3 changed files with 69 additions and 0 deletions
36
flake.nix
Normal file
36
flake.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
description = "Loupe image viewer with annotation support";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||||
in
|
||||
{
|
||||
packages = forAllSystems (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
loupe = pkgs.loupe.overrideAttrs (old: {
|
||||
version = "51.0.0";
|
||||
src = self;
|
||||
|
||||
cargoDeps = pkgs.rustPlatform.fetchCargoVendor {
|
||||
src = self;
|
||||
name = "loupe-deps-51.0.0";
|
||||
hash = "sha256-rq89XiQdOTVLTxrt8PhDC8LdXCaELIDHiwJu+teu6bY=";
|
||||
};
|
||||
|
||||
meta = (builtins.removeAttrs old.meta [ "changelog" "maintainers" "teams" ]) // {
|
||||
homepage = "https://forg.gregersen.it/lazzexus/Loupe";
|
||||
description = "Loupe image viewer with screenshot annotation support";
|
||||
};
|
||||
});
|
||||
in
|
||||
{
|
||||
default = loupe;
|
||||
loupe = loupe;
|
||||
});
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue