at 23.11-beta 63 lines 1.2 kB view raw
1{ lib, stdenv 2, fetchFromGitHub 3, nix-update-script 4, meson 5, ninja 6, vala 7, pkg-config 8, pantheon 9, python3 10, gettext 11, glib 12, gtk3 13, libgee 14, wrapGAppsHook }: 15 16stdenv.mkDerivation rec { 17 pname = "cipher"; 18 version = "2.5.0"; 19 20 src = fetchFromGitHub { 21 owner = "arshubham"; 22 repo = "cipher"; 23 rev = version; 24 sha256 = "00azc5ck17zkdypfza6x1viknwhimd9fqgk2ybff3mx6aphmla7a"; 25 }; 26 27 nativeBuildInputs = [ 28 gettext 29 meson 30 ninja 31 vala 32 pkg-config 33 python3 34 wrapGAppsHook 35 ]; 36 37 buildInputs = [ 38 glib 39 gtk3 40 pantheon.granite 41 libgee 42 ]; 43 44 postPatch = '' 45 substituteInPlace data/com.github.arshubham.cipher.desktop.in \ 46 --replace "gio" "${glib.bin}/bin/gio" 47 chmod +x meson/post_install.py 48 patchShebangs meson/post_install.py 49 ''; 50 51 passthru = { 52 updateScript = nix-update-script { }; 53 }; 54 55 meta = with lib; { 56 description = "A simple application for encoding and decoding text, designed for elementary OS"; 57 homepage = "https://github.com/arshubham/cipher"; 58 maintainers = with maintainers; [ xiorcale ] ++ teams.pantheon.members; 59 platforms = platforms.linux; 60 license = licenses.gpl3Plus; 61 mainProgram = "com.github.arshubham.cipher"; 62 }; 63}