nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 automake,
6 autoconf,
7 pkg-config,
8 gtk3,
9}:
10
11stdenv.mkDerivation rec {
12 pname = "gsimplecal";
13 version = "2.5.1";
14
15 src = fetchFromGitHub {
16 owner = "dmedvinsky";
17 repo = "gsimplecal";
18 rev = "v${version}";
19 sha256 = "sha256-Q8vK+rIRr+Tzwq0Xw5a1pYoLkSwF6PEdqc3/Dk01++o=";
20 };
21
22 postPatch = ''
23 sed -i -e '/sys\/sysctl.h/d' src/Unique.cpp
24 '';
25
26 enableParallelBuilding = true;
27
28 nativeBuildInputs = [
29 pkg-config
30 automake
31 autoconf
32 ];
33 buildInputs = [ gtk3 ];
34
35 preConfigure = "./autogen.sh";
36
37 meta = {
38 homepage = "http://dmedvinsky.github.io/gsimplecal/";
39 description = "Lightweight calendar application written in C++ using GTK";
40 longDescription = ''
41 gsimplecal was intentionally made for use with tint2 panel in the
42 openbox environment to be launched upon clock click, but of course it
43 will work without it. In fact, binding the gsimplecal to some hotkey in
44 you window manager will probably make you happy. The thing is that when
45 it is started it first shows up, when you run it again it closes the
46 running instance. In that way it is very easy to integrate anywhere. No
47 need to write some wrapper scripts or whatever.
48
49 Also, you can configure it to not only show the calendar, but also
50 display multiple clocks for different world time zones.
51 '';
52 license = lib.licenses.bsd3;
53 maintainers = [ lib.maintainers.romildo ];
54 platforms = lib.platforms.linux;
55 mainProgram = "gsimplecal";
56 };
57}