+/config

my dotfiles and nix configuration

git clone https://git.julia.blue/+/config

Julia RyanSlippi video toolsa24e151

main
1017 B46 linesraw
1{ lib, python3, fetchFromGitHub, ffmpeg }:
2python3.pkgs.buildPythonApplication (finalAttrs: {
3  pname = "slp2mp4";
4  version = "3.1.1";
5  pyproject = true;
6
7  src = fetchFromGitHub {
8    owner = "davisdude";
9    repo = "slp2mp4";
10    tag = finalAttrs.version;
11    hash = "sha256-lhveXygC/mKa1REzvAWVZqB2Ocw4z27fDeKX81ae30M=";
12  };
13
14  build-system = with python3.pkgs; [
15    hatch-vcs
16    hatchling
17  ];
18
19  dependencies = with python3.pkgs; [
20    pathvalidate
21    tkinter
22    tomli-w
23  ];
24
25  nativeBuildInputs = [
26    python3.pkgs.wrapPython
27  ];
28
29  pythonImportsCheck = [
30    "slp2mp4"
31  ];
32
33  postInstall = ''
34    wrapProgram $out/bin/slp2mp4 \
35      --prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
36    wrapProgram $out/bin/slp2mp4_gui \
37      --prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
38  '';
39
40  meta = {
41    description = "Convert slippi replay files for Super Smash Bros Melee to videos";
42    homepage = "https://github.com/davisdude/slp2mp4";
43    license = lib.licenses.mit;
44    mainProgram = "slp2mp4";
45  };
46})