27 stdenv.mkDerivation (finalAttrs: {
31 src = fetchFromGitLab {
32 domain = "gitlab.gnome.org";
35 rev = "refs/tags/v${finalAttrs.version}";
36 hash = "sha256-h8/mWGuosBiQRpoW8rINJht/7UBVEnUnTKY5HBCAyw4=";
39 cargoDeps = rustPlatform.fetchCargoTarball {
40 inherit (finalAttrs) pname version src;
41 hash = "sha256-oO7l4zVKR93fFLqkY67DfzrAA9kUN06ov9ogwDuaVlE=";
50 desktop-file-utils # for `desktop-file-validate`
51 glib # for `glib-compile-schemas`
52 gtk4 # for `gtk-update-icon-cache`
56 rustPlatform.cargoCheckHook
57 rustPlatform.cargoSetupHook
65 gst_all_1.gst-plugins-bad
66 gst_all_1.gst-plugins-base
67 gst_all_1.gst-plugins-good
76 mesonBuildType = "release";
78 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
79 cargoCheckType = if (finalAttrs.mesonBuildType != "debug") then "release" else "debug";
81 nativeInstallCheckInputs = [ versionCheckHook ];
82 doInstallCheck = true;
93 passthru.updateScript = nix-update-script { };
96 description = "Program for comparing multiple versions of an image or video";
97 homepage = "https://gitlab.gnome.org/YaLTeR/identity";
98 changelog = "https://gitlab.gnome.org/YaLTeR/identity/-/releases/v${finalAttrs.version}";
99 license = lib.licenses.gpl3Plus;
100 maintainers = with lib.maintainers; [ getchoo ];
101 mainProgram = "identity";
102 platforms = lib.platforms.linux;