+/corneria
git clone https://git.julia.blue/+/corneria
5f7c66f
main
1{ 2inputs = { 3utils . url = "github:numtide/flake-utils" ; 4nixpkgs . url = "github:NixOS/nixpkgs/nixos-unstable" ; 5rust-overlay . url = "github:oxalica/rust-overlay" ; 6}; 7nixConfig = { 8extra-substituters = [ "https://cache.garnix.io" ]; 9extra-trusted-public-keys = [ "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" ]; 10}; 11outputs = 12{ 13self , 14nixpkgs , 15rust-overlay , 16utils , 17} : 18utils . lib . eachDefaultSystem ( 19system: 20let 21pkgs = nixpkgs . legacyPackages .${ system }. extend rust-overlay . overlays . default ; 22rust = pkgs . rust-bin . fromRustupToolchainFile ./rust-toolchain.toml ; 23 24replay-manager = ( 25{ 26lib , 27buildNpmPackage , 28fetchFromGitHub , 29} : 30buildNpmPackage ( finalAttrs: { 31pname = "replay-manager-for-slippi" ; 32version = "1.7.7" ; 33 34src = fetchFromGitHub { 35owner = "jmlee337" ; 36repo = "replay-manager-for-slippi" ; 37tag = "v ${ finalAttrs . version } " ; 38hash = "" ; 39}; 40npmDepsHash = "" ; 41# npmPackFlags = [ "--ignore-scripts" ]; 42# NODE_OPTIONS = "--openssl-legacy-provider"; 43meta = { 44description = "Tool for managing Slippi replays from hotplugged USBs" ; 45homepage = "https://github.com/jmlee337/replay-manager-for-slippi" ; 46license = lib . licenses . mit ; 47maintainers = with lib . maintainers ; [ nicolet ]; 48}; 49}) 50); 51 52slp2mp4 = ( 53{ 54lib , 55python3 , 56fetchFromGitHub , 57} : 58python3 . pkgs . buildPythonApplication rec { 59pname = "slp2mp4" ; 60version = "3.0.7" ; 61pyproject = true ; 62 63src = fetchFromGitHub { 64owner = "davisdude" ; 65repo = "slp2mp4" ; 66rev = version ; 67hash = "sha256-Eh33nvEpJto78BbbZQWzGRl3It6086TkCtHc80N994o=" ; 68}; 69 70build-system = [ 71python3 . pkgs . hatch-vcs 72python3 . pkgs . hatchling 73]; 74dependencies = with python3 . pkgs ; [ pathvalidate ]; 75optional-dependencies = with python3 . pkgs ; { 76gui = [ tomli-w ]; 77}; 78pythonImportsCheck = [ "slp2mp4" ]; 79meta = { 80description = "Convert slippi replay files for Super Smash Bros Melee to videos" ; 81homepage = "https://github.com/davisdude/slp2mp4" ; 82license = lib . licenses . mit ; 83mainProgram = "slp2mp4" ; 84}; 85} 86); 87in 88{ 89devShell = pkgs . mkShell { 90packages = with pkgs ; [ 91wrangler 92worker-build 93rust 94# replay-manager 95# slp2mp4 96]; 97}; 98} 99// { 100overlays . default = final: prev: { 101replay-manager = final . callPackage replay-manager { }; 102slp2mp4 = final . callPackage slp2mp4 { }; 103lib = prev . lib . extend ( 104_: prev_lib: { 105maintainers = prev_lib . maintainers // { 106nicolet = { 107= "jmlee337@gmail.com" ; 108github = "jmelee337" ; 109githubId = 3300257 ; 110name = "Nicolet" ; 111}; 112}; 113} 114); 115}; 116} 117); 118}