You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.nix 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. { stdenv
  2. , fetchFromGitHub
  3. , meson
  4. , ninja
  5. , pkgconfig
  6. , pantheon
  7. , python3
  8. , gettext
  9. , glib
  10. , gtk3
  11. , libgee
  12. , xdg_utils
  13. , wrapGAppsHook }:
  14. stdenv.mkDerivation rec {
  15. pname = "cipher";
  16. version = "2.0.0";
  17. src = fetchFromGitHub {
  18. owner = "arshubham";
  19. repo = "cipher";
  20. rev = version;
  21. sha256 = "0n5aigcyxnl4k52mdmavbxx6afc1ixymn3k3l2ryhyzi5q31x0x3";
  22. };
  23. nativeBuildInputs = [
  24. gettext
  25. meson
  26. ninja
  27. pantheon.vala
  28. pkgconfig
  29. python3
  30. wrapGAppsHook
  31. ];
  32. buildInputs = [
  33. glib
  34. gtk3
  35. pantheon.granite
  36. libgee
  37. ];
  38. postPatch = ''
  39. substituteInPlace data/com.github.arshubham.cipher.desktop.in \
  40. --replace xdg-open ${xdg_utils}/bin/xdg-open
  41. chmod +x post_install.py
  42. patchShebangs post_install.py
  43. '';
  44. meta = with stdenv.lib; {
  45. description = "A simple application for encoding and decoding text, designed for elementary OS";
  46. homepage = "https://github.com/arshubham/cipher";
  47. maintainers = with maintainers; [ kjuvi ] ++ pantheon.maintainers;
  48. platforms = platforms.linux;
  49. license = licenses.gpl3Plus;
  50. };
  51. }