2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, nix-update-script, meson, ninja, pkgconfig, vala, pantheon, python3, libgee, gtk3, desktop-file-utils, wrapGAppsHook }:
|
2018-09-08 11:13:13 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "hashit";
|
2019-08-04 08:30:04 +01:00
|
|
|
version = "1.1.0";
|
2018-09-08 11:13:13 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "artemanufrij";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-08-04 08:30:04 +01:00
|
|
|
sha256 = "1s8fbzg1z2ypn55xg1pfm5xh15waq55fkp49j8rsqiq8flvg6ybf";
|
2018-09-08 11:13:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2018-10-31 22:04:02 +00:00
|
|
|
desktop-file-utils
|
2018-09-08 11:13:13 +01:00
|
|
|
meson
|
|
|
|
ninja
|
2019-10-10 03:47:37 +01:00
|
|
|
vala
|
2018-09-08 11:13:13 +01:00
|
|
|
pkgconfig
|
|
|
|
python3
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-08-04 08:30:04 +01:00
|
|
|
gtk3
|
|
|
|
libgee
|
2018-08-20 21:31:18 +01:00
|
|
|
pantheon.elementary-icon-theme
|
|
|
|
pantheon.granite
|
2018-09-08 11:13:13 +01:00
|
|
|
];
|
|
|
|
|
2018-10-31 22:04:02 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
2019-12-22 23:19:30 +00:00
|
|
|
passthru = {
|
2020-07-29 17:33:39 +01:00
|
|
|
updateScript = nix-update-script {
|
2019-12-22 23:19:30 +00:00
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-08-04 08:30:04 +01:00
|
|
|
description = "A simple app for checking usual checksums - Designed for elementary OS";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/artemanufrij/hashit";
|
2018-10-31 22:04:02 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2019-08-04 08:30:04 +01:00
|
|
|
maintainers = pantheon.maintainers;
|
2018-10-31 22:04:02 +00:00
|
|
|
platforms = platforms.linux;
|
2018-09-08 11:13:13 +01:00
|
|
|
};
|
|
|
|
}
|