about summary refs log tree commit diff
path: root/pkgs/applications/networking/mailreaders/astroid/default.nix
diff options
context:
space:
mode:
authorBrandon Dimcheff <bdimchef-git@wieldim.com>2016-12-31 18:14:09 -0500
committerJörg Thalheim <joerg@higgsboson.tk>2017-01-01 22:38:12 +0100
commit0890ce6f09787096c878b14c9b5d37831093a404 (patch)
treea1bee6fb92814ec404dcaf5b0391fd6df2b02796 /pkgs/applications/networking/mailreaders/astroid/default.nix
parentcf9e1a03f7ce26f4f23e03dd094e2a2615e7457a (diff)
downloadnixlib-0890ce6f09787096c878b14c9b5d37831093a404.tar
nixlib-0890ce6f09787096c878b14c9b5d37831093a404.tar.gz
nixlib-0890ce6f09787096c878b14c9b5d37831093a404.tar.bz2
nixlib-0890ce6f09787096c878b14c9b5d37831093a404.tar.lz
nixlib-0890ce6f09787096c878b14c9b5d37831093a404.tar.xz
nixlib-0890ce6f09787096c878b14c9b5d37831093a404.tar.zst
nixlib-0890ce6f09787096c878b14c9b5d37831093a404.zip
astroid: init at 0.6
Diffstat (limited to 'pkgs/applications/networking/mailreaders/astroid/default.nix')
-rw-r--r--pkgs/applications/networking/mailreaders/astroid/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/applications/networking/mailreaders/astroid/default.nix b/pkgs/applications/networking/mailreaders/astroid/default.nix
new file mode 100644
index 000000000000..31cad15296cf
--- /dev/null
+++ b/pkgs/applications/networking/mailreaders/astroid/default.nix
@@ -0,0 +1,36 @@
+{ stdenv, fetchFromGitHub, scons, pkgconfig, gnome3, gmime, webkitgtk24x
+  , libsass, notmuch, boost, makeWrapper }:
+
+stdenv.mkDerivation rec {
+  name = "astroid-${version}";
+  version = "0.6";
+
+  src = fetchFromGitHub {
+    owner = "astroidmail";
+    repo = "astroid";
+    rev = "v${version}";
+    sha256 = "0zashjmqv8ips9q8ckyhgm9hfyf01wpgs6g21cwl05q5iklc5x7r";
+  };
+
+  patches = [ ./propagate-environment.patch ];
+
+  buildInputs = [ scons pkgconfig gnome3.gtkmm gmime webkitgtk24x libsass
+                  gnome3.libpeas notmuch boost gnome3.gsettings_desktop_schemas
+                  makeWrapper ];
+
+  buildPhase = "scons --prefix=$out build";
+  installPhase = "scons --prefix=$out install";
+
+  preFixup = ''
+    wrapProgram "$out/bin/astroid" \
+      --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
+  '';
+
+  meta = {
+    homepage = "https://astroidmail.github.io/";
+    description = "GTK+ frontend to the notmuch mail system";
+    maintainers = [ stdenv.lib.maintainers.bdimcheff ];
+    license = stdenv.lib.licenses.gpl3Plus;
+    platforms = stdenv.lib.platforms.linux;
+  };
+}