4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
79 lines
1.4 KiB
Nix
79 lines
1.4 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, glib
|
|
, gtk3
|
|
, json-glib
|
|
, sqlite
|
|
, libsoup
|
|
, gettext
|
|
, gspell
|
|
, vala
|
|
, meson
|
|
, ninja
|
|
, pkgconfig
|
|
, dconf
|
|
, gst_all_1
|
|
, wrapGAppsHook
|
|
, gobject-introspection
|
|
, glib-networking
|
|
, librest
|
|
, python3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.2.1";
|
|
pname = "cawbird";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "IBBoard";
|
|
repo = "cawbird";
|
|
rev = "v${version}";
|
|
sha256 = "11s8x48syy5wjj23ab4bn5jxhi7l5sx7aw6q2ggk99v042hxh3h2";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
vala
|
|
pkgconfig
|
|
wrapGAppsHook
|
|
python3
|
|
gobject-introspection # for setup hook
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gtk3
|
|
json-glib
|
|
sqlite
|
|
libsoup
|
|
gettext
|
|
dconf
|
|
gspell
|
|
glib-networking
|
|
librest
|
|
] ++ (with gst_all_1; [
|
|
gstreamer
|
|
gst-plugins-base
|
|
gst-plugins-bad
|
|
(gst-plugins-good.override {
|
|
gtkSupport = true;
|
|
})
|
|
gst-libav
|
|
]);
|
|
|
|
postPatch = ''
|
|
chmod +x data/meson_post_install.py # patchShebangs requires executable file
|
|
patchShebangs data/meson_post_install.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Native GTK Twitter client for the Linux desktop";
|
|
longDescription = "Cawbird is a modern, easy and fun Twitter client. Fork of the discontinued Corebird.";
|
|
homepage = "https://ibboard.co.uk/cawbird/";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = with stdenv.lib.maintainers; [ jonafato schmittlauch ];
|
|
};
|
|
}
|