Re: [Nix-dev] E18

2014-08-03 Thread Thomas Strobel
Sure! I run it by adding the following into my /etc/nixos/configuration.nix:

imports = [ path/to/e18 ];

config = {
  services.xserver.displayManager.slim.enable = true;
  services.xserver.desktopManager.e18.enable = true;
  services.xserver.desktopManager.xterm.enable = false;
};

The integration into the display managers is very basic so far, but I
hope that helps!
Thomas


On 08/04/2014 01:18 AM, Anderson Torres wrote:
> Can I test it? :)
>
> 2014-08-03 18:33 GMT-03:00 Thomas Strobel :
>> Hi,
>>
>> I've packed Enlightenment E18, and I just wanted to share it. It might
>> need some review before pushing it online, especially the functions
>> provided in the module.nix configuration.
>>
>> Many thanks,
>> Thomas
>>
>> ___
>> nix-dev mailing list
>> nix-dev@lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Vim setup for Haskell

2014-08-03 Thread Marc Weber
I personally use nixpkgs-haskell-overlay
and vim-addon-haskell which can run cabal.

The nixpkgs-haskell-overlay implementation is prototype implementation
(see wiki) and can tag haskell sources (using hasktags).
You then source an env var which sets an environment var pointing to tag
files.

There are alternative solutions, too

Marc Weber
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Vim setup for Haskell

2014-08-03 Thread Thomas Strobel
Hi,

I've tried to pack/integrate VIM with plugins/programs that help with
Haskell development. I would be very thankful for feedback and help with
integrating it properly into NIX-OS.

Many thanks,
Thomas


hvim.tar.bz2
Description: Binary data
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] thermald.nix

2014-08-03 Thread Cillian de Róiste
Hi Thomas,

Thanks for your contributions! It would be easier for maintainers to
review and accept them if you used github pull requests. Could you do
that instead of sending them as attachments?

Cheers,
Cillian

On Sun, Aug 3, 2014 at 11:20 PM, Thomas Strobel  wrote:
> Hi,
>
> maybe someone interested in pushing the .nix file for thermald online?
> It's maybe not the latest version, and the systemd integration is quite
> basic, but it works. It might benefit from a change in the kernel's
> default configuration, though.
>
> Best wishes,
> Thomas
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>



-- 
NixOS: The Purely Functional Linux Distribution
http://nixos.org
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] E18

2014-08-03 Thread Thomas Strobel
Hi,

I've packed Enlightenment E18, and I just wanted to share it. It might
need some review before pushing it online, especially the functions
provided in the module.nix configuration.

Many thanks,
Thomas


e18.tar.bz2
Description: Binary data
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] thermald.nix

2014-08-03 Thread Thomas Strobel
Hi,

maybe someone interested in pushing the .nix file for thermald online?
It's maybe not the latest version, and the systemd integration is quite
basic, but it works. It might benefit from a change in the kernel's
default configuration, though.

Best wishes,
Thomas
{ stdenv, fetchurl, unzip, autoconf, automake, libtool, pkgconfig, dbus_libs, 
dbus_glib, libxml2 }:

let
  version = "next";
in

stdenv.mkDerivation rec {
  name = "thermald-${version}";
  src = fetchurl {
url = 
"https://github.com/01org/thermal_daemon/archive/thermal_daemon_next.zip";;
sha256 = "0rk2l1s1ar60j9hxbrhji8zmv730pzv2ysjamv0qvbynlhi4xzjp";
  };
  buildInputs = [ unzip autoconf automake libtool pkgconfig dbus_libs dbus_glib 
libxml2 ];

  patchPhase = ''sed -e 's/upstartconfdir = \/etc\/init/upstartconfdir = 
$(out)\/etc\/init/' -i data/Makefile.am'';

  preConfigure = ''
   export 
PKG_CONFIG_PATH="${dbus_libs}/lib/pkgconfig:$PKG_CONFIG_PATH"
   ./autogen.sh #--prefix="$out"
 '';

  configureFlags = [
"--sysconfdir=$(out)/etc" "--localstatedir=/var"
"--with-dbus-sys-dir=$(out)/etc/dbus-1/system.d"
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
];

  preInstall = "sysconfdir=$out/etc";


  meta = {
description = "Thermal Daemon";
longDescription = ''
 Thermal Daemon
'';
homepage = https://01.org/linux-thermal-daemon;
license = stdenv.lib.licenses.gpl2;
  };
}
{ config, lib, pkgs, ... }:

with lib;

let
  cfg = config.services.thermald;

in {

  ## interface

  options = { 

services.thermald = { 

  enable = mkOption {
default = false;
description = ''
  Whether to enable thermald, the temperature management daemon.
''; 
  };  

};  

  };  


  ## implementation

  config = mkIf cfg.enable {

systemd.services.thermald = {
  description = "Thermal Daemon Service";
  wantedBy = [ "multi-user.target" ];
  script = "exec ${pkgs.thermald}/sbin/thermald --no-daemon --dbus-enable";
};

  };

}
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] fityk.nix, xylib.nix and wxGTK_3.0.1.nix

2014-08-03 Thread Thomas Strobel
Hi,

please find attached the .nix files for building fityk
(http://fityk.nieto.pl/). Hope it helps.

Best wishes,
Thomas
{ stdenv, fetchurl, boost, zlib, bzip2 }:

let
  name= "xylib";
  version = "1.3";
in
stdenv.mkDerivation {
  name = "${name}-${version}";

  src = fetchurl {
url = 
"https://github.com/wojdyr/xylib/releases/download/v${version}/${name}-${version}.tar.bz2";;
sha256 = "09j426qjbg3damch1hfw16j992kn2hj8gs4lpvqgfqdw61kvqivh";
  };

  buildInputs = [boost zlib bzip2 ];

  meta = {
description = "xylib is a portable library for reading files that contain 
x-y data from powder diffraction, spectroscopy and other experimental methods.";
license = "LGPL";
homepage = http://xylib.sourceforge.net/;
platforms = stdenv.lib.platforms.linux;
  };
}
{ stdenv, fetchurl, pkgconfig, gtk, libXinerama, libSM, libXxf86vm, 
xf86vidmodeproto
, gstreamer, gst_plugins_base, GConf, setfile
, withMesa ? true, mesa ? null, compat24 ? false, compat26 ? true, unicode ? 
true,
}:

assert withMesa -> mesa != null;

with stdenv.lib;

let
  version = "3.0.1";
in
stdenv.mkDerivation {
  name = "wxwidgets-${version}";

  src = fetchurl {
url = "mirror://sourceforge/wxwindows/wxWidgets-${version}.tar.bz2";
sha256 = "1xf5s8cnq6xr0r6l0y9cn1pjg961xbycl4afhjrqzbsnxiwinrxx";
  };

  buildInputs =
[ gtk libXinerama libSM libXxf86vm xf86vidmodeproto gstreamer
  gst_plugins_base GConf ]
++ optional withMesa mesa
++ optional stdenv.isDarwin setfile;

  nativeBuildInputs = [ pkgconfig ];

  configureFlags =
[ "--enable-gtk2" "--disable-precomp-headers" "--enable-mediactrl"
  (if compat24 then "--enable-compat24" else "--disable-compat24")
  (if compat26 then "--enable-compat26" else "--disable-compat26") ]
++ optional unicode "--enable-unicode"
++ optional withMesa "--with-opengl"
++ optionals stdenv.isDarwin
  # allow building on 64-bit
  [ "--with-cocoa" "--enable-universal-binaries" ];

  SEARCH_LIB = optionalString withMesa "${mesa}/lib";

  preConfigure = "
substituteInPlace configure --replace 'SEARCH_INCLUDE=' 
'DUMMY_SEARCH_INCLUDE='
substituteInPlace configure --replace 'SEARCH_LIB=' 'DUMMY_SEARCH_LIB='
substituteInPlace configure --replace /usr /no-such-path
  " + optionalString stdenv.isDarwin ''
substituteInPlace configure --replace \
  'ac_cv_prog_SETFILE="/Developer/Tools/SetFile"' \
  'ac_cv_prog_SETFILE="${setfile}/bin/SetFile"'
  '';

  postInstall = "
(cd $out/include && ln -s wx-*/* .)
  ";

  passthru = {inherit gtk compat24 compat26 unicode;};

  enableParallelBuilding = true;
}
{ stdenv, fetchurl, wxGTK301, boost, lua, zlib, bzip2, xylib, readline, gnuplot 
}:

let
  name= "fityk";
  version = "1.2.9";
in
stdenv.mkDerivation {
  name = "${name}-${version}";

  src = fetchurl {
url = 
"https://github.com/wojdyr/fityk/releases/download/v${version}/${name}-${version}.tar.bz2";;
sha256 = "1gl938nd2jyya8b3gzbagm1jab2mkc9zvr6zsg5d0vkfdqlk0pv1";
  };

  buildInputs = [wxGTK301 boost lua zlib bzip2 xylib readline gnuplot ];

  meta = {
description = "Fityk -- curve fitting and peak fitting software";
license = "GPL2";
homepage = http://fityk.nieto.pl/;
platforms = stdenv.lib.platforms.linux;
  };
}
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] povray.nix

2014-08-03 Thread Thomas Strobel
Hi,

I've attached a nix description for an updated version of povray. Maybe
someone wants to put it online?

Best wishes,
Thomas
{stdenv, fetchgit, autoconf, automake, boost149, zlib, libpng, libjpeg, 
libtiff}:

let boost = boost149; in
stdenv.mkDerivation {
  name = "povray-3.7";

  src = fetchgit {
url = "https://github.com/POV-Ray/povray.git";;
rev = "39ce8a24e50651904010dda15872d63be15d7c37";
sha256 = "0d56631d9daacb8967ed359025f56acf0bd505d1d9e752859e8ff8656ae72d20";
  };


  buildInputs = [ autoconf automake boost zlib libpng libjpeg libtiff ];

  # the installPhase wants to put files into $HOME. I let it put the files
  # to $TMPDIR, so they don't get into the $out
  postPatch = '' cd unix
 ./prebuild.sh
 cd ..
 sed -i -e 's/^povconfuser.*/povconfuser=$(TMPDIR)\/povray/' 
Makefile.{am,in}
 sed -i -e 's/^povuser.*/povuser=$(TMPDIR)\/.povray/' 
Makefile.{am,in}
 sed -i -e 's/^povowner.*/povowner=nobody/' Makefile.{am,in}
 sed -i -e 's/^povgroup.*/povgroup=nogroup/' Makefile.{am,in}
   '';

  configureFlags = "COMPILED_BY='nix' --with-boost-libdir=${boost}/lib 
--with-boost-includedir=${boost}/include";

  preInstall = ''
mkdir "$TMP/bin"
for i in chown chgrp; do
  echo '#!/bin/sh' >> "$TMP/bin/$i"
  chmod +x "$TMP/bin/$i"
  PATH="$TMP/bin:$PATH"
done
  '';
  
  meta = {
homepage = http://www.povray.org/;
description = "Persistence of Vision Raytracer";
license = "free";
  };
}
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Intermittent failures for containers test

2014-08-03 Thread Mateusz Kowalczyk
Hi,

Often I look on Hydra to see why nixos-unstable channel hasn't moved and
often I see nixos:trunk-combined:nixos.tests.containers as the reason.
Looking at the log and from an IRC discussion I had few days ago, the
problem is stipulated to be networking not coming up quickly enough. Log
at [1].

In cointainers.nix there is a:

#$machine->succeed("ping -c1 $ip"); # FIXME

This is commented out, probably because it is a workaround. Is anyone
actively working on finding the bigger problem, and if not, can we
perhaps uncomment the line? It's a shame to not get channel updates due
to an intermittent failure which doesn't reflect actual changes in
nixpkgs: it's not testing whether we made changes which makes
containers.nix test fail as much as it tests our luck.

Of course, this workaround might just not work or run until the job
times out at which point it is less useful but would benefit from
further documentation rather than just ‘FIXME’.

It'd just be great if someone could shed some like on the problem here.

[1]: http://hydra.nixos.org/build/13049666/log/raw
-- 
Mateusz K.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev