Nixfiles/pkgs/rmc.nix

51 lines
909 B
Nix
Raw Normal View History

2024-12-22 11:16:34 +01:00
{
lib,
python3,
fetchFromGitHub,
2024-12-22 11:28:59 +01:00
inkscape,
makeWrapper,
2024-12-22 11:16:34 +01:00
}:
python3.pkgs.buildPythonApplication rec {
pname = "rmc";
version = "0.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "ricklupton";
repo = "rmc";
rev = "v${version}";
hash = "sha256-R6sS7/yqMuTxjlYLVir5bvZF2SRogp5729nLUQaMFjY=";
};
build-system = [
python3.pkgs.poetry-core
];
dependencies = with python3.pkgs; [
2024-12-22 11:28:59 +01:00
makeWrapper
2024-12-22 11:16:34 +01:00
click
rmscene
];
pythonImportsCheck = [
"rmc"
];
2025-05-01 18:51:08 +02:00
pythonRelaxDeps = [
"rmscene"
];
2024-12-22 11:28:59 +01:00
postInstall = ''
wrapProgram $out/bin/rmc --prefix PATH : ${lib.makeBinPath [ inkscape ]}
'';
2024-12-22 11:16:34 +01:00
meta = {
description = "Convert to/from v6 .rm files from the reMarkable tablet";
homepage = "https://github.com/ricklupton/rmc";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
mainProgram = "rmc";
};
}