Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 49 lines 992 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 bash, 6}: 7 8python3Packages.buildPythonApplication rec { 9 pname = "marcel"; 10 version = "0.30.4"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "geophile"; 15 repo = "marcel"; 16 tag = "v${version}"; 17 hash = "sha256-ER1Hr+sC55Qnp21qjCwc70Nho2VQ3FztzsLLlx3EtA8="; 18 }; 19 20 nativeBuildInputs = with python3Packages; [ 21 setuptools 22 ]; 23 24 buildInputs = [ 25 bash 26 ]; 27 28 pythonPath = with python3Packages; [ 29 dill 30 psutil 31 ]; 32 33 # The tests use sudo and try to read/write $HOME/.local/share/marcel and /tmp 34 doCheck = false; 35 36 postFixup = '' 37 wrapProgram $out/bin/marcel \ 38 --prefix PATH : "$program_PATH:${lib.getBin bash}/bin" \ 39 --prefix PYTHONPATH : "$program_PYTHONPATH" 40 ''; 41 42 meta = with lib; { 43 description = "Modern shell"; 44 homepage = "https://github.com/geophile/marcel"; 45 license = licenses.gpl3Only; 46 maintainers = with maintainers; [ kud ]; 47 mainProgram = "marcel"; 48 }; 49}