From e42324eaa73d808e76b5b50208ceb9733c09e749 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 17 Jul 2021 13:05:04 +0200 Subject: [PATCH] fspy: init at 1.0.3 It does not support wayland and therefore has to be run with GDK_BACKEND=x11. --- fSpy/default.nix | 25 +++++++++++++++++++++++++ flake.nix | 3 +++ 2 files changed, 28 insertions(+) create mode 100644 fSpy/default.nix diff --git a/fSpy/default.nix b/fSpy/default.nix new file mode 100644 index 0000000..43a96b3 --- /dev/null +++ b/fSpy/default.nix @@ -0,0 +1,25 @@ +{ lib, appimageTools, fetchurl, gsettings-desktop-schemas, gtk3 }: +let + pname = "fSpy"; + version = "1.0.3"; +in +appimageTools.wrapType2 { + name = "${pname}-${version}"; + + src = fetchurl { + url = "https://github.com/stuffmatic/${pname}/releases/download/v${version}/${lib.toLower pname}-${version}-x86_64.AppImage"; + sha256 = "0w0ps15xx6nyn0gy4xwhlmgc37ddmfggrm9rjbclq4kf9i4arsig"; + }; + + profile = '' + export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS + ''; + + meta = with lib; { + description = "A cross platform app for quick and easy still image camera matching"; + homepage = "https://fspy.io"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ sbruder ]; + platforms = [ "x86_64-linux" ]; + }; +} diff --git a/flake.nix b/flake.nix index 100ac8a..8f5e604 100644 --- a/flake.nix +++ b/flake.nix @@ -32,6 +32,8 @@ deemix = callPythonPackage ./deemix { }; + fSpy = callPackage ./fSpy { }; + face_morpher = callPythonPackage ./face_morpher { }; mpvScripts = prev.mpvScripts // { @@ -80,6 +82,7 @@ VisiCut cyanrip deemix + fSpy face_morpher nsz oha