mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
hashes: init at 1.1.0 (#346630)
This commit is contained in:
commit
373bed22cc
73
pkgs/by-name/ha/hashes/package.nix
Normal file
73
pkgs/by-name/ha/hashes/package.nix
Normal file
@ -0,0 +1,73 @@
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
adwaita-icon-theme,
|
||||
gtk4,
|
||||
libadwaita,
|
||||
desktop-file-utils,
|
||||
wrapGAppsHook4,
|
||||
meson,
|
||||
ninja,
|
||||
pkg-config,
|
||||
cmake,
|
||||
python3Packages,
|
||||
appstream,
|
||||
fetchPypi,
|
||||
gobject-introspection,
|
||||
glib,
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "hashes";
|
||||
version = "1.1.0";
|
||||
|
||||
pyproject = false;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zefr0x";
|
||||
repo = "hashes";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-BmfSCHs+JcpsAG8AhaYf+SDFI+LdJKMKgBIodd66qmw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
desktop-file-utils
|
||||
cmake
|
||||
pkg-config
|
||||
appstream
|
||||
gobject-introspection
|
||||
wrapGAppsHook4
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gtk4
|
||||
libadwaita
|
||||
glib
|
||||
adwaita-icon-theme
|
||||
];
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
name-that-hash
|
||||
pygobject3
|
||||
];
|
||||
dontWrapGApps = true;
|
||||
|
||||
preFixup = ''
|
||||
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
||||
'';
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/zefr0x/hashes/tree/main";
|
||||
changelog = "https://github.com/zefr0x/hashes/releases/tag/v${version}";
|
||||
description = "Simple hash algorithm identification GUI";
|
||||
maintainers = with lib.maintainers; [ bot-wxt1221 ];
|
||||
license = lib.licenses.gpl3Plus;
|
||||
mainProgram = "hashes";
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user