From 10b433ecffa2330df253da4e23db188071a694da Mon Sep 17 00:00:00 2001 From: Quentin Vaucher Date: Fri, 4 Oct 2019 13:15:52 +0200 Subject: [PATCH] cipher: init at 2.0.0 --- pkgs/applications/misc/cipher/default.nix | 57 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 59 insertions(+) create mode 100644 pkgs/applications/misc/cipher/default.nix diff --git a/pkgs/applications/misc/cipher/default.nix b/pkgs/applications/misc/cipher/default.nix new file mode 100644 index 00000000000..51095e8e58e --- /dev/null +++ b/pkgs/applications/misc/cipher/default.nix @@ -0,0 +1,57 @@ +{ stdenv +, fetchFromGitHub +, meson +, ninja +, pkgconfig +, pantheon +, python3 +, gettext +, glib +, gtk3 +, libgee +, xdg_utils +, wrapGAppsHook }: + +stdenv.mkDerivation rec { + pname = "cipher"; + version = "2.0.0"; + + src = fetchFromGitHub { + owner = "arshubham"; + repo = "cipher"; + rev = version; + sha256 = "0n5aigcyxnl4k52mdmavbxx6afc1ixymn3k3l2ryhyzi5q31x0x3"; + }; + + nativeBuildInputs = [ + gettext + meson + ninja + pantheon.vala + pkgconfig + python3 + wrapGAppsHook + ]; + + buildInputs = [ + glib + gtk3 + pantheon.granite + libgee + ]; + + postPatch = '' + substituteInPlace data/com.github.arshubham.cipher.desktop.in \ + --replace xdg-open ${xdg_utils}/bin/xdg-open + chmod +x post_install.py + patchShebangs post_install.py + ''; + + meta = with stdenv.lib; { + description = "A simple application for encoding and decoding text, designed for elementary OS"; + homepage = "https://github.com/arshubham/cipher"; + maintainers = with maintainers; [ kjuvi ] ++ pantheon.maintainers; + platforms = platforms.linux; + license = licenses.gpl3Plus; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fb906ed884a..272e2e8486b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17729,6 +17729,8 @@ in cinelerra = callPackage ../applications/video/cinelerra { }; + cipher = callPackage ../applications/misc/cipher { }; + claws-mail = callPackage ../applications/networking/mailreaders/claws-mail { inherit (xorg) libSM; };