identity: 0.6.0 -> 0.7.0 (#354325)

This commit is contained in:
Peder Bergebakken Sundt
2024-11-14 03:48:30 +01:00
committed by GitHub
2 changed files with 44 additions and 2745 deletions
-2728
View File
File diff suppressed because it is too large Load Diff
+44 -17
View File
@@ -1,54 +1,61 @@
{
lib,
stdenv,
fetchFromGitLab,
rustPlatform,
cargo,
rustc,
appstream,
blueprint-compiler,
cargo,
dav1d,
desktop-file-utils,
fetchFromGitLab,
glib,
gst_all_1,
gtk4,
lcms,
libadwaita,
libseccomp,
libwebp,
meson,
ninja,
pkg-config,
nix-update-script,
pkg-config,
rustPlatform,
rustc,
versionCheckHook,
wrapGAppsHook4,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "identity";
version = "0.6.0";
version = "0.7.0";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "YaLTeR";
repo = "identity";
rev = "v${version}";
hash = "sha256-AiOaTjYOc7Eo+9kl1H91TKAkCKNUJNWobmBENZlHBhQ=";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-h8/mWGuosBiQRpoW8rINJht/7UBVEnUnTKY5HBCAyw4=";
};
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
outputHashes = {
"gst-plugin-gtk4-0.12.0-alpha.1" = "sha256-JSw9yZ4oy7m6c9pqOT+fnYEbTlneLTtWQf3/Jbek/ps=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit (finalAttrs) pname version src;
hash = "sha256-oO7l4zVKR93fFLqkY67DfzrAA9kUN06ov9ogwDuaVlE=";
};
strictDeps = true;
nativeBuildInputs = [
appstream
blueprint-compiler
cargo
desktop-file-utils
desktop-file-utils # for `desktop-file-validate`
glib # for `glib-compile-schemas`
gtk4 # for `gtk-update-icon-cache`
meson
ninja
pkg-config
rustc
rustPlatform.cargoCheckHook
rustPlatform.cargoSetupHook
rustc
wrapGAppsHook4
];
@@ -60,18 +67,38 @@ stdenv.mkDerivation rec {
gst_all_1.gst-plugins-good
gst_all_1.gstreamer
gtk4
lcms
libadwaita
libseccomp
libwebp
];
mesonBuildType = "release";
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
cargoCheckType = if (finalAttrs.mesonBuildType != "debug") then "release" else "debug";
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
checkPhase = ''
runHook preCheck
cargoCheckHook
mesonCheckPhase
runHook postCheck
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Program for comparing multiple versions of an image or video";
homepage = "https://gitlab.gnome.org/YaLTeR/identity";
changelog = "https://gitlab.gnome.org/YaLTeR/identity/-/releases/v${finalAttrs.version}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ getchoo ];
mainProgram = "identity";
platforms = lib.platforms.linux;
};
}
})