about summary refs log tree commit diff
path: root/pkgs/tools/security/gencfsm/default.nix
blob: 537b2caf45b394eefa72c060f90ffbb1f09e8dff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{ lib, stdenv, fetchurl, autoconf, automake, intltool, libtool, pkg-config
, encfs, libsecret , glib , libgee, gtk3, vala, wrapGAppsHook, xorg
, gobject-introspection
}:

stdenv.mkDerivation rec {
  version = "1.9";
  pname = "gnome-encfs-manager";

  src = fetchurl {
    url = with lib.versions;
      "https://launchpad.net/gencfsm/trunk/${major version}.${minor version}/+download/gnome-encfs-manager_${version}.tar.xz";
    sha256 = "RXVwg/xhfAQv3pWp3UylOhMKDh9ZACTuKM4lPrn1dk8=";
  };

  nativeBuildInputs = [
    autoconf
    automake
    intltool
    libtool
    pkg-config
    vala
    wrapGAppsHook
    gobject-introspection
  ];
  buildInputs = [
    glib
    encfs
    gtk3
    libgee
    xorg.libSM
    xorg.libICE
    libsecret
  ];

  # Fix hardcoded paths to /bin/mkdir
  patches = [ ./makefile-mkdir.patch ];

  preConfigure = ''
    ./autogen.sh
  '';

  configureFlags = [ "--disable-appindicator" ];

  preFixup = "gappsWrapperArgs+=(--prefix PATH : ${encfs}/bin)";

  enableParallelBuilding = true;

  meta = with lib; {
    homepage = "http://www.libertyzero.com/GEncfsM/";
    downloadPage = "https://launchpad.net/gencfsm/";
    description = "EncFS manager and mounter with GNOME3 integration";
    mainProgram = "gnome-encfs-manager";
    license = licenses.gpl2Plus;
    platforms = platforms.linux;
    maintainers = [ maintainers.spacefrogg ];
  };
}