Skip to content

Commit

Permalink
astroid: init at 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
bdimcheff authored and Mic92 committed Jan 1, 2017
1 parent cf9e1a0 commit 0890ce6
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
36 changes: 36 additions & 0 deletions pkgs/applications/networking/mailreaders/astroid/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/SConstruct b/SConstruct
index a80bca3..ed2cd6d 100644
--- a/SConstruct
+++ b/SConstruct
@@ -5,7 +5,7 @@ from subprocess import *
def getGitDesc():
return Popen('git describe --abbrev=8 --tags --always', stdout=PIPE, shell=True).stdout.read ().strip ()

-env = Environment ()
+env = Environment(ENV = os.environ)

AddOption ("--release", action="store", dest="release", default="git", help="Make a release (default: git describe output)")
AddOption ("--enable-debug", action="store", dest="debug", default=None, help="Enable the -g flag for debugging (default: true when release is git)")
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12317,6 +12317,8 @@ in
giflib = giflib_4_1;
};

astroid = callPackage ../applications/networking/mailreaders/astroid { };

audacious = callPackage ../applications/audio/audacious { };
audaciousQt5 = qt5.callPackage ../applications/audio/audacious/qt-5.nix { };

Expand Down

0 comments on commit 0890ce6

Please sign in to comment.