Commit Graph

30 Commits

Author SHA1 Message Date
Jonathan Ringer
e31bb0051f
lammps: use pkgs.autoAddDriverRunpath 2024-03-30 10:26:13 -07:00
Yann Hamdaoui
63746cac08
cudaPackages: generalize and refactor setup hook
This PR refactor CUDA setup hooks, and in particular
autoAddOpenGLRunpath and autoAddCudaCompatRunpathHook, that were using a
lot of code in common (in fact, I introduced the latter by copy pasting
most of the bash script of the former). This is not satisfying for
maintenance, as a recent patch showed, because we need to duplicate
changes to both hooks.

This commit abstract the common part in a single shell script that
applies a generic patch action to every elf file in the output. For
autoAddOpenGLRunpath the action is just addOpenGLRunpath (now
addDriverRunpath), and is few line function for
autoAddCudaCompatRunpathHook.

Doing so, we also takes the occasion to use the newer addDriverRunpath
instead of the previous addOpenGLRunpath, and rename the CUDA hook to
reflect that as well.

Co-Authored-By: Connor Baker <connor.baker@tweag.io>
2024-03-15 15:54:21 +01:00
R. Ryantm
16d5b925a8 lammps-mpi: 2Aug2023_update2 -> 2Aug2023_update3 2024-03-02 20:33:42 +00:00
Markus Kowalewski
2058c3a373 lammps: fix homepage and license 2023-12-24 23:05:00 +01:00
R. Ryantm
bebc9fc5db lammps-mpi: 2Aug2023_update1 -> 2Aug2023_update2 2023-12-16 06:40:55 +00:00
Doron Behar
2112a277f9 lammps: 23Jun2022_update4 -> 2Aug2023_update1
Diff: https://github.com/lammps/lammps/compare/stable_23Jun2022_update4...stable_2Aug2023_update1
2023-09-27 17:18:14 +03:00
Doron Behar
8ace65ff3d
treewide: use finalAttrs in all packages I maintain (#255902)
* mpd-touch-screen-gui: use finalAttrs in mkDerivation; reformat

* musescore: use finalAttrs in mkDerivation

* syncthingtray: use stdenv.mkDerivation with a function; reformat

* ocrfeeder: use finalAttrs in mkDerivation; reformat

* castget: use finalAttrs in mkDerivation

* gnome-network-displays: use finalAttrs in mkDerivation

* mailreaders: use finalAttrs in mkDerivation

* mswatch: use finalAttrs in mkDerivation

* uhd: use finalAttrs in mkDerivation

* maxima: use finalAttrs in mkDerivation

* qalculate-gtk: use finalAttrs in mkDerivation

* qalculate-qt: use finalAttrs in mkDerivation

* wxmaxima: use finalAttrs in mkDerivation

* lammps: use finalAttrs in mkDerivation

* mlterm: use finalAttrs in mkDerivation

* video-trimmer: use finalAttrs in mkDerivation

* nerdfonts: use finalAttrs in mkDerivation

* gnomeExtensions.easyScreenCast: use finalAttrs in mkDerivation

* octave: use finalAttrs in mkDerivation; reformat

* comedilib: use finalAttrs in mkDerivation

* cpp-utilities: use finalAttrs in mkDerivation

* libsForQt5.kpeoplevcard: use finalAttrs in mkDerivation; reformat

* liberio: use finalAttrs in mkDerivation

* libqalculate: use finalAttrs in mkDerivation; reformat

* libwtk-sdl2: use finalAttrs in mkDerivation

* libsForQt5.pulseaudio-qt: use finalAttrs in mkDerivation; reformat

* qrupdate: use finalAttrs in mkDerivation; reformat

* libsForQt5.qtforkawesome: use finalAttrs in mkDerivation; reformat

* libsForQt5.qtutilities: use finalAttrs in mkDerivation; reformat

* sqlitecpp: use finalAttrs in mkDerivation; reformat

* tweeny: use finalAttrs in mkDerivation

* volk: use finalAttrs in mkDerivation

* wiringpi: use finalAttrs in mkDerivation

* snzip: use finalAttrs in mkDerivation; reformat

* bpm-tools: use finalAttrs in mkDerivation; reformat

* sacd: use finalAttrs in mkDerivation

* gtk-gnutella: use finalAttrs in mkDerivation; reformat

* sile: use finalAttrs in mkDerivation

* pplatex: use finalAttrs in mkDerivation; reformat
2023-09-21 11:31:17 +03:00
Doron Behar
4939850514 lammps: 23Jun2022_update4 -> 2Aug2023 2023-08-04 17:48:40 +03:00
Doron Behar
eae54103ca lammps: always enable cuda opengl runpath support 2023-07-27 18:51:41 +03:00
Doron Behar
10e7c631c8 lammps: Install vim and neovim files 2023-07-27 18:44:01 +03:00
Doron Behar
6051ebe0ce lammps: Add meta.mainProgram 2023-07-27 18:44:01 +03:00
Doron Behar
4a64b8d9f3 lammps-mpi: Use a generic extraBuildInputs instead of withMpi
Add support for `extraCmakeFlags` as well and add `pkg-config` to
`nativeBuildInputs`.
2023-06-21 23:03:57 +03:00
Doron Behar
9c99223666 lammps: Add backwards compatible link to lmp_serial 2023-06-07 18:09:36 +03:00
Doron Behar
64bed841a9 lammps: mark as broken for 32 bit lapack & blas 2023-06-07 18:09:36 +03:00
Doron Behar
66c6053b10 lammps: 29Oct2020 -> 23Jun2022_update4 2023-06-04 01:29:54 +03:00
Doron Behar
4994570ab3 lammps: Add doronbehar as maintainer 2023-06-03 15:40:20 +03:00
figsoda
ec8cb34358 treewide: fix typos 2022-12-17 19:39:44 -05:00
Markus Kowalewski
dd9bc408af
lammps: update GPL2 license field 2021-06-02 13:23:09 +02:00
Markus Kowalewski
ed22820646
lammps: stable_22Aug2018 -> stable_29Oct2020 2021-06-02 13:23:09 +02:00
Markus Kowalewski
6dba41fbcb
mpi: use mpi attribute consistently as the default MPI implementations
Use the attribute mpi to provide a system wide default MPI
implementation. The default is openmpi (as before).
This now allows for overriding the MPI implentation by using
the overlay mechanism. Build all packages with mpich instead
of the default openmpi can now be achived like this:
self: super:
 {
   mpi = super.mpich;
 }

All derivations that have been using "mpi ? null" to provide optional
building with MPI have been change in the following way to allow for
optional builds with MPI:
{ ...
, mpi
, useMpi ? false
}
2021-01-23 12:15:13 +01:00
Ben Siraphob
badf51221d treewide: stdenv.lib -> lib 2021-01-16 17:58:11 +07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Matthew Bauer
1c8aba8334 treewide: use blas and lapack
This makes packages use lapack and blas, which can wrap different
BLAS/LAPACK implementations.

treewide: cleanup from blas/lapack changes

A few issues in the original treewide:

- can’t assume blas64 is a bool
- unused commented code
2020-04-17 16:24:09 -05:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
volth
7b8fb5c06c treewide: remove redundant quotes 2019-09-08 23:38:31 +00:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Chris Ostrouchov
397e15f89e
lammps: patch_2Aug2018 -> stable_22Aug2018
nix derivation was cleaned significantly to follow nixpkgs better
2018-10-15 08:43:57 -04:00
Chris Ostrouchov
9745611ed6
lammps: 16Feb16 -> patch_2Aug2018
Major changes and update to lammps build

 - using fetchFromGitHub to get source instead of lammps mirror
 - configurable lammps packages included and includes for compilation
 - cleaner build script
 - preserving the executable, shared library names, and include headers
2018-08-10 16:35:54 -04:00
Silvan Mosberger
f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00
Chris Ostrouchov
a32d5d3755 lammps: init at 2016-02-16 2016-04-01 18:37:52 -04:00