Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

electricsheep: 2.6.8 -> 2.7b33 #22285

Merged
merged 1 commit into from Feb 7, 2017
Merged

electricsheep: 2.6.8 -> 2.7b33 #22285

merged 1 commit into from Feb 7, 2017

Conversation

nand0p
Copy link
Contributor

@nand0p nand0p commented Jan 30, 2017

  • Updates and fixes currently broken package.
  • Provides Flam3 and GLee dependencies.
  • Tested on Nixos Unstable.

@mention-bot
Copy link

@nand0p, thanks for your PR! By analyzing the history of the files in this pull request, we identified @vcunat and @edolstra to be potential reviewers.

@nand0p nand0p changed the title ElectricSheep: 2.6.8 -> 2.7b33 electricsheep: 2.6.8 -> 2.7b33 Jan 30, 2017
@nand0p nand0p force-pushed the electricsheep branch 2 times, most recently from fa6bd47 to fa1957c Compare January 30, 2017 07:18
@nand0p nand0p force-pushed the electricsheep branch 2 times, most recently from 1c8a0dc to b9cb4a0 Compare February 1, 2017 18:19
@nand0p
Copy link
Contributor Author

nand0p commented Feb 4, 2017

@vcunat @edolstra @pSub ready_for_review

'';

meta = with stdenv.lib; {
description = "Electric Sheep, a distributed screen saver for evolving artificial organisms.";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Descriptions should not end with a period.

];

meta = with stdenv.lib; {
description = "Cosmic recursive fractal flames.";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Descriptions should not end with a period.

'';

meta = with stdenv.lib; {
description = "GL Easy Extension Library.";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Descriptions should not end with a period.

};

buildInputs = with pkgs; [
cmake mesa xorg.libX11
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add cmake to nativeBuildInputs instead of buildInputs.

{stdenv, fetchgit, pkgs}:

stdenv.mkDerivation rec {
name = "glee";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name should contain a version. If you refer to an unreleased commit use the time stamp of that commit.

};

buildInputs = [pkgconfig expat zlib libpng libjpeg xorg.xlibsWrapper xorg.libXv];
buildInputs = with pkgs; [
autoconf automake libtool wxGTK30 libav lua5_1 pkgconfig curl libpng xorg.libXrender
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of adding autoconf and automake and calling ./autogen.sh you can just use the autoreconfHook.

@nand0p
Copy link
Contributor Author

nand0p commented Feb 5, 2017

@pSub looks like im getting this on using autoreconfHook:

./configure: line 18537: syntax error near unexpected token PTHREAD_OK=true,PTHREAD_OK=false' ./configure: line 18537: ACX_PTHREAD(PTHREAD_OK=true,PTHREAD_OK=false)'

i left it commented in code to show how this was generated.

};

buildInputs = [pkgconfig expat zlib libpng libjpeg xorg.xlibsWrapper xorg.libXv];
#nativeBuildInputs = [ autoreconfHook ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why commented out?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

currently, i am running ./autogen.sh in configurePhase manually, as autoreconfHook is giving me the following error:

./configure: line 18537: syntax error near unexpected token PTHREAD_OK=true,PTHREAD_OK=false'
./configure: line 18537:ACX_PTHREAD(PTHREAD_OK=true,PTHREAD_OK=false)'

im not sure about this error, or if im missing something when invoking autoreconfHook ?

It works correctly as is manually, without invoking autoreconfHook. i left it commented to show this, as hopefully there is an obvious fix?

src = fetchurl {
url = "http://electricsheep.org/${name}.tar.gz";
sha256 = "1flqcqfs75wg74hr5w85n6w8b26l4qrpwzi7fzylnry67yzf94y5";
src = fetchgit {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd use fetchFromGitHub here and in the other one, which is quite a bit more efficient, especially for big repos.

'';

preInstall = ''
sed -i 's/readme/Readme/' cmake_install.cmake
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's up with this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks for a file named "readme" and breaks if it cannot find it, so i change the filename it looks for to make it work.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do other folks run it on a case-insensitive filesystem or something? Seems weird, but makes sense

];

preBuild = ''
sed -i 's|/usr|$out|' Makefile
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will this get substituted in properly? I'd expect double quotes here, but I can't remember if make expands env vars inside makefiles

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is working, but i will fix to follow convention.

@nand0p
Copy link
Contributor Author

nand0p commented Feb 6, 2017

@pSub @copumpkin this is now updated and working with autoreconfHook and fetchFromGitHub

- Updates and fixes currently broken package.
- Provides Flam3 and GLee dependencies.
- Tested on Nixos Unstable.
@pSub pSub merged commit 04a1285 into NixOS:master Feb 7, 2017
copumpkin referenced this pull request Feb 8, 2017
Also some cleanups like removed unused buildInputs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants