mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
tmpi: init at 1.0.0
This commit is contained in:
parent
91e5a5aa19
commit
7837dcbf6f
48
pkgs/by-name/tm/tmpi/package.nix
Normal file
48
pkgs/by-name/tm/tmpi/package.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, mpi
|
||||
, mpich
|
||||
, tmux
|
||||
, reptyr
|
||||
, autoconf
|
||||
, makeWrapper
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tmpi";
|
||||
version = "0-unstable-2022-02-22";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Azrael3000";
|
||||
repo = "tmpi";
|
||||
rev = "f5a0fd8848b5c87b301edc8a23de9bfcfbd41918";
|
||||
hash = "sha256-BaOaMpsF8ho8EIVuHfu4+CiVV3yLoC3tDkLq4R8BYBA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ mpi mpich reptyr tmux ];
|
||||
|
||||
buildInputs = [ autoconf makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
|
||||
install -m755 tmpi $out/bin/tmpi
|
||||
|
||||
wrapProgram $out/bin/tmpi \
|
||||
--prefix PATH : ${lib.makeBinPath [ mpi mpich tmux reptyr ]}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Run a parallel command inside a split tmux window";
|
||||
mainProgram = "tmpi";
|
||||
homepage = "https://github.com/Azrael3000/tmpi";
|
||||
license = lib.licenses.gpl2;
|
||||
maintainers = with lib.maintainers; [ vasissualiyp ];
|
||||
platforms = reptyr.meta.platforms;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue