mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
bdb851ee2d
elementary OS's ecosystem is curated around Ubuntu's LTS releases. This means the development platform for their curated applications always includes a LTS version of vala (in 18.04 it's 0.40). Because of how vala development works it suspect some of these applications to have serious issues if complied with the latest vala. However in the past year or so, for Pantheon at least, I don't think their applications will have much issues with latest vala, and if there is I don't think they'd be difficult to fix. In this single regard they've become more responsive since their preferred language is vala. As for the curated applications I have less of this confidence in. So I'd have to be accept less applications, but that's something I'm willing to compromise on. And this is easily reversible or could be done on a per-application basis. And nix already makes this trivial.
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, meson
|
|
, ninja
|
|
, vala
|
|
, 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
|
|
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;
|
|
};
|
|
}
|