mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-02-14 11:20:19 +01:00
50 lines
909 B
Nix
50 lines
909 B
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchFromGitHub,
|
|
inkscape,
|
|
makeWrapper,
|
|
}:
|
|
|
|
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; [
|
|
makeWrapper
|
|
click
|
|
rmscene
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"rmc"
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"rmscene"
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/rmc --prefix PATH : ${lib.makeBinPath [ inkscape ]}
|
|
'';
|
|
|
|
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";
|
|
};
|
|
}
|