-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
Submit/fvwm module #1532
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
Submit/fvwm module #1532
Changes from 4 commits
4d89c18
5fa6394
94faa81
f2b673e
2470cee
a2f7742
646f39d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| { pkgs, config, ... }: | ||
|
|
||
| with pkgs.lib; | ||
|
|
||
| let | ||
| cfg = config.services.xserver.windowManager.fvwm; | ||
| in | ||
|
|
||
| { | ||
| options = { | ||
| services.xserver.windowManager.fvwm = { | ||
| enable = mkOption { | ||
| default = false; | ||
| example = true; | ||
| description = "Enable the fvwm window manager."; | ||
| }; | ||
|
|
||
| configFile = mkOption { | ||
| default = null; | ||
| type = types.nullOr types.path; | ||
| description = '' | ||
| Path to the fvwm configuration file. | ||
| If left at the default value, $HOME/.fvwm/config will be used. | ||
| ''; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| config = mkIf cfg.enable { | ||
| services.xserver.windowManager = { | ||
| session = [{ | ||
| name = "fvwm"; | ||
| start = '' | ||
| ${pkgs.fvwm}/bin/fvwm ${optionalString (cfg.configFile != null) | ||
| "-c \"${cfg.configFile}\"" | ||
| } & | ||
| waitPID=$! | ||
| ''; | ||
| }]; | ||
| }; | ||
| environment.systemPackages = [ pkgs.fvwm ]; | ||
| }; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| { stdenv, fetchurl, sbcl, libX11, libXpm, libICE, libSM, libXt, libXau, libXdmcp }: | ||
|
|
||
| stdenv.mkDerivation rec { | ||
| name = "fricas-1.2.2"; | ||
|
|
||
| src = fetchurl { | ||
| url = "http://sourceforge.net/projects/fricas/files/fricas/1.2.2/${name}-full.tar.bz2"; | ||
| sha256 = "87db64a1fd4211f3b776793acea931b4271d2e7a28396414c7d7397d833defe1"; | ||
| }; | ||
|
|
||
| buildInputs = [ sbcl libX11 libXpm libICE libSM libXt libXau libXdmcp ]; | ||
|
|
||
| dontStrip = true; | ||
|
|
||
| meta = with stdenv.lib; { | ||
| description = "Fricas CAS"; | ||
| homepage = http://fricas.sourceforge.net/; | ||
| license = "bsd"; | ||
| platforms = platforms.all; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i believe you only tested this on linux right? |
||
| }; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- cmake/modules/RootBuildOptions.cmake 1969-12-31 20:30:01.000000000 -0330 | ||
| +++ cmake/modules/RootBuildOptions.cmake 2014-01-10 14:09:29.424937408 -0330 | ||
| @@ -149,7 +149,7 @@ | ||
|
|
||
| #---General Build options---------------------------------------------------------------------- | ||
| # use, i.e. don't skip the full RPATH for the build tree | ||
| -set(CMAKE_SKIP_BUILD_RPATH FALSE) | ||
| +set(CMAKE_SKIP_BUILD_RPATH TRUE) | ||
| # when building, don't use the install RPATH already (but later on when installing) | ||
| set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) | ||
| # add the automatically determined parts of the RPATH |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| { stdenv, fetchurl, cmake, mesa, libX11, gfortran, libXpm, libXft, libXext, zlib }: | ||
|
|
||
| stdenv.mkDerivation rec { | ||
| name = "root_v5.34.14"; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. version comes after dash ... above line should be |
||
|
|
||
| src = fetchurl { | ||
| url = "ftp://root.cern.ch/root/${name}.source.tar.gz"; | ||
| sha256 = "d5347ba1b614eb083cf08050b784d66a93c125ed89938708da1adb33323dee2b"; | ||
| }; | ||
|
|
||
| buildInputs = [ cmake gfortran mesa libX11 libXpm libXft libXext zlib ]; | ||
|
|
||
| # CMAKE_INSTALL_RPATH_USE_LINK_PATH is set to FALSE in | ||
| # <rootsrc>/cmake/modules/RootBuildOptions.cmake. | ||
| # This patch sets it to TRUE. | ||
| patches = [ ./cmake.patch ]; | ||
| patchFlags = "-p0"; | ||
|
|
||
| meta = { | ||
| description = "A data analysis framework"; | ||
| #maintainers = [ stdenv.lib.maintainers.urkud ]; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you can also add yourself as a maintainer in |
||
| platforms = stdenv.lib.platforms.mesaPlatforms; | ||
| }; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. license is missing here. |
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you chose license from stdenv.lib.licenses. please