Skip to content

Commit

Permalink
mud: init at 1.0.1 (NixOS#350895)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Oct 29, 2024
2 parents 57f2153 + e5fa3b0 commit 6868113
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions pkgs/by-name/mu/mud/package.nix
Original file line number Diff line number Diff line change
@@ -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";
};
}

0 comments on commit 6868113

Please sign in to comment.