mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
mud: init at 1.0.1 (#350895)
This commit is contained in:
commit
68681138e3
48
pkgs/by-name/mu/mud/package.nix
Normal file
48
pkgs/by-name/mu/mud/package.nix
Normal file
@ -0,0 +1,48 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
python3Packages,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "mud";
|
||||
version = "1.0.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jasursadikov";
|
||||
repo = "mud";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-pW4B4+RN7hKtG2enJ33OHBeGsLj8w20ylvjcOL6owAk=";
|
||||
};
|
||||
|
||||
build-system = with python3Packages; [
|
||||
hatchling
|
||||
];
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
prettytable
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "mud" ];
|
||||
|
||||
# Version checking fails on darwin with:
|
||||
# PermissionError: [Errno 1] Operation not permitted: '/var/empty/.mudsettings'
|
||||
# despite adding `export HOME=$(mktemp -d)` in the `preVersionCheck` phase.
|
||||
# The tool
|
||||
nativeCheckInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
||||
versionCheckHook
|
||||
];
|
||||
versionCheckProgramArg = [ "--version" ];
|
||||
|
||||
meta = {
|
||||
description = "multi-directory git runner which allows you to run git commands in a multiple repositories";
|
||||
homepage = "https://github.com/jasursadikov/mud";
|
||||
license = lib.licenses.mit;
|
||||
changelog = "https://github.com/jasursadikov/mud/releases/tag/v${version}";
|
||||
maintainers = with lib.maintainers; [ genga898 ];
|
||||
mainProgram = "mud";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user