auto-editor: 29.7.0 -> 30.3.0

This commit is contained in:
utopiatopia
2026-05-30 21:01:11 -07:00
parent 507c78db9f
commit 6dea6cf62a
2 changed files with 25 additions and 40 deletions
+14 -14
View File
@@ -2,27 +2,27 @@
"depends": [
{
"method": "fetchzip",
"path": "/nix/store/w556rbsnv2fxb229av2iq180ri9x0d9j-source",
"rev": "77469f58916369bc3863194cabb05238577fb257",
"sha256": "18wjz5yqzr1dz6286p2w02fk2xjr54l477g90bz4pskjcqrqnjbv",
"url": "https://github.com/khchen/tinyre/archive/77469f58916369bc3863194cabb05238577fb257.tar.gz",
"ref": "1.6.0",
"path": "/nix/store/63sp165yl6is029c8g5cn3550vq8pp1x-source",
"rev": "e9f0c49b234fd4a2038b752ab02703288346ce98",
"sha256": "1rwr4d150l0v14ccmwr13zi6fr8din1h8spivmxwkcfa66jm73j1",
"url": "https://github.com/WyattBlue/csort/archive/e9f0c49b234fd4a2038b752ab02703288346ce98.tar.gz",
"ref": "1.0.0",
"packages": [
"tinyre"
"csort"
],
"srcDir": ""
"srcDir": "src"
},
{
"method": "fetchzip",
"path": "/nix/store/6aph9sfwcws7pd2725fwjnibdfrv7qmw-source",
"rev": "f8f6bd34bfa3fe12c64b919059ad856a96efcba0",
"sha256": "11m1rb6rzk70kvskppf97ddzgf5fnh9crjziqc6hib0jgsm5d615",
"url": "https://github.com/nim-lang/checksums/archive/f8f6bd34bfa3fe12c64b919059ad856a96efcba0.tar.gz",
"ref": "v0.2.1",
"path": "/nix/store/f2xp1v0vnplwfjnk8nqsi7gd9pnb9gcv-source",
"rev": "b3dbc9c4d08e58c5b7bfad6dc7ef2ee52f2f4c08",
"sha256": "1v4rz42lwcazs6isi3kmjylkisr84mh0kgmlqycx4i885dn3g0l4",
"url": "https://github.com/cheatfate/nimcrypto/archive/b3dbc9c4d08e58c5b7bfad6dc7ef2ee52f2f4c08.tar.gz",
"ref": "v0.7.3^{}",
"packages": [
"checksums"
"nimcrypto"
],
"srcDir": "src"
"srcDir": ""
}
]
}
+11 -26
View File
@@ -5,24 +5,13 @@
buildNimPackage,
fetchFromGitHub,
withHEVC ? true,
withWhisper ? false, # TODO: Investigate linker failure. See PR 476678
withVpx ? true,
withSvtAv1 ? true,
withCuda ? false,
withVpl ? stdenv.hostPlatform.isLinux,
ffmpeg-full,
yt-dlp,
lame,
libopus,
libvpx,
x264,
x265,
dav1d,
svt-av1,
libvpl,
whisper-cpp,
python3,
python3Packages,
@@ -30,13 +19,13 @@
buildNimPackage rec {
pname = "auto-editor";
version = "29.7.0";
version = "30.3.0";
src = fetchFromGitHub {
owner = "WyattBlue";
repo = "auto-editor";
tag = version;
hash = "sha256-R1GnvFjC/nq/gIiX6rUxP7qR3IfpGfc4Ci28AIk4CfQ=";
hash = "sha256-1DFTT6dyIYlB3EMPf5eleXvRr1d29jmtt7GQfRpOkUE=";
};
lockFile = ./lock.json;
@@ -47,20 +36,16 @@ buildNimPackage rec {
libopus
x264
dav1d
]
++ lib.optionals withHEVC [ x265 ]
++ lib.optionals withWhisper [ whisper-cpp ]
++ lib.optionals withVpx [ libvpx ]
++ lib.optionals withSvtAv1 [ svt-av1 ]
++ lib.optionals withVpl [ libvpl ];
];
nimFlags =
lib.optionals withHEVC [ "-d:enable_hevc" ]
++ lib.optionals withWhisper [ "-d:enable_whisper" ]
++ lib.optionals withVpx [ "-d:enable_vpx" ]
++ lib.optionals withSvtAv1 [ "-d:enable_svtav1" ]
++ lib.optionals withCuda [ "-d:enable_cuda" ]
++ lib.optionals withVpl [ "-d:enable_vpl" ];
env = {
# Nothing should be dynamically linked, as ffmpeg should already link it.
DISABLE_HEVC = "1";
DISABLE_WHISPER = "1";
DISABLE_VPX = "1";
DISABLE_SVTAV1 = "1";
DISABLE_VPL = "1";
};
postPatch = ''
substituteInPlace src/log.nim \