2024-02-29 20:09:43 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3Packages
|
|
|
|
, bash
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "marcel";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.29.0";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "geophile";
|
|
|
|
repo = "marcel";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-hUI5dUqelmRuk65s67rJXrZoPDWAcnNVIHlzxAgRExs=";
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
bash
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonPath = with python3Packages; [
|
|
|
|
dill
|
|
|
|
psutil
|
|
|
|
];
|
|
|
|
|
|
|
|
# The tests use sudo and try to read/write $HOME/.local/share/marcel and /tmp
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/marcel \
|
|
|
|
--prefix PATH : "$program_PATH:${lib.getBin bash}/bin" \
|
|
|
|
--prefix PYTHONPATH : "$program_PYTHONPATH"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Modern shell";
|
2024-02-29 20:09:43 +00:00
|
|
|
homepage = "https://github.com/geophile/marcel";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ kud ];
|
|
|
|
mainProgram = "marcel";
|
|
|
|
};
|
|
|
|
}
|