depot/third_party/nixpkgs/pkgs/by-name/ma/marcel/package.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

48 lines
998 B
Nix

{ lib
, fetchFromGitHub
, python3Packages
, bash
}:
python3Packages.buildPythonApplication rec {
pname = "marcel";
version = "0.28";
pyproject = true;
src = fetchFromGitHub {
owner = "geophile";
repo = "marcel";
rev = "refs/tags/v${version}";
hash = "sha256-aJq8FAW1/Vo2x3st+/cxAzo4jHYPBDx/2i/2h1GVnrs=";
};
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; {
description = "A modern shell";
homepage = "https://github.com/geophile/marcel";
license = licenses.gpl3Only;
maintainers = with maintainers; [ kud ];
mainProgram = "marcel";
};
}