nixpkgs/pkgs/tools/misc/hashit/default.nix

47 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, cmake, vala_0_40, python3, gnome3, gtk3, granite, gobject-introspection, desktop-file-utils, wrapGAppsHook }:
2018-09-08 12:13:13 +02:00
stdenv.mkDerivation rec {
pname = "hashit";
2018-10-31 23:04:02 +01:00
version = "1.0.0";
2018-09-08 12:13:13 +02:00
name = "${pname}-${version}";
src = fetchFromGitHub {
owner = "artemanufrij";
repo = pname;
rev = version;
2018-10-31 23:04:02 +01:00
sha256 = "1ba38qmwdk7vkarsxqn89irbymzx52gbks4isx0klg880xm2z4dv";
2018-09-08 12:13:13 +02:00
};
nativeBuildInputs = [
2018-10-31 23:04:02 +01:00
desktop-file-utils
gobject-introspection
2018-09-08 12:13:13 +02:00
meson
ninja
pkgconfig
python3
2018-10-31 23:04:02 +01:00
vala_0_40 # should be `elementary.vala` when elementary attribute set is merged
2018-09-08 12:13:13 +02:00
wrapGAppsHook
];
buildInputs = [
2018-10-31 23:04:02 +01:00
gnome3.defaultIconTheme # should be `elementary.defaultIconTheme`when elementary attribute set is merged
gnome3.libgee
2018-09-08 12:13:13 +02:00
granite
gtk3
];
2018-10-31 23:04:02 +01:00
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
2018-09-08 12:13:13 +02:00
meta = with stdenv.lib; {
description = "A simple app for checking usual checksums";
2018-10-31 23:04:02 +01:00
homepage = https://github.com/artemanufrij/hashit;
license = licenses.gpl2Plus;
2018-09-08 12:13:13 +02:00
maintainers = with maintainers; [ worldofpeace ];
2018-10-31 23:04:02 +01:00
platforms = platforms.linux;
2018-09-08 12:13:13 +02:00
};
}