nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 60 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 mpi, 6 mpich, 7 tmux, 8 reptyr, 9 makeWrapper, 10}: 11 12stdenv.mkDerivation { 13 pname = "tmpi"; 14 version = "0-unstable-2022-02-22"; 15 16 src = fetchFromGitHub { 17 owner = "Azrael3000"; 18 repo = "tmpi"; 19 rev = "f5a0fd8848b5c87b301edc8a23de9bfcfbd41918"; 20 hash = "sha256-BaOaMpsF8ho8EIVuHfu4+CiVV3yLoC3tDkLq4R8BYBA="; 21 }; 22 23 propagatedBuildInputs = [ 24 mpi 25 mpich 26 reptyr 27 tmux 28 ]; 29 30 nativeBuildInputs = [ makeWrapper ]; 31 32 installPhase = '' 33 runHook preInstall 34 35 mkdir -p $out/bin 36 37 install -m755 tmpi $out/bin/tmpi 38 39 wrapProgram $out/bin/tmpi \ 40 --prefix PATH : ${ 41 lib.makeBinPath [ 42 mpi 43 mpich 44 tmux 45 reptyr 46 ] 47 } 48 49 runHook postInstall 50 ''; 51 52 meta = { 53 description = "Run a parallel command inside a split tmux window"; 54 mainProgram = "tmpi"; 55 homepage = "https://github.com/Azrael3000/tmpi"; 56 license = lib.licenses.gpl2; 57 maintainers = with lib.maintainers; [ vasissualiyp ]; 58 platforms = reptyr.meta.platforms; 59 }; 60}