owncast: 0.2.0 -> 0.2.3

This commit is contained in:
Martin Wimpress 2025-05-19 11:22:59 +01:00
parent 2615e4f75c
commit 4d49b3bc17
No known key found for this signature in database

View file

@ -5,12 +5,11 @@
nixosTests, nixosTests,
bash, bash,
which, which,
ffmpeg, ffmpeg-full,
makeBinaryWrapper, makeBinaryWrapper,
}: }:
let let
version = "0.2.0"; version = "0.2.3";
in in
buildGoModule { buildGoModule {
pname = "owncast"; pname = "owncast";
@ -19,21 +18,27 @@ buildGoModule {
owner = "owncast"; owner = "owncast";
repo = "owncast"; repo = "owncast";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-MdquhDdbOdP1shnKHBlzQrSDe41fp0qnMzgaqL89jTk="; hash = "sha256-JCIB4G3cOSkEEO/jcsj4mUP+HeQfgn0jX4OL8NX9/C0=";
}; };
vendorHash = "sha256-ERilQZ8vnhGW1IEcLA4CcmozDooHKbnmASMw87tjYD4="; vendorHash = "sha256-FuynEBoPS0p1bRgmaeCxn1RPqbYHcltZpQ9SE71xHEE=";
propagatedBuildInputs = [ ffmpeg ]; propagatedBuildInputs = [ ffmpeg-full ];
nativeBuildInputs = [ makeBinaryWrapper ]; nativeBuildInputs = [ makeBinaryWrapper ];
# lefthook is included as a tool in go.mod for a pre-commit hook, but causes the build to fail
preBuild = ''
# Remove lefthook from tools section in go.mod
sed -i '/tool (/,/)/{ /[[:space:]]*github.com\/evilmartians\/lefthook[[:space:]]*$/d; }' go.mod
'';
postInstall = '' postInstall = ''
wrapProgram $out/bin/owncast \ wrapProgram $out/bin/owncast \
--prefix PATH : ${ --prefix PATH : ${
lib.makeBinPath [ lib.makeBinPath [
bash bash
which which
ffmpeg ffmpeg-full
] ]
} }
''; '';
@ -51,8 +56,10 @@ buildGoModule {
homepage = "https://owncast.online"; homepage = "https://owncast.online";
license = licenses.mit; license = licenses.mit;
platforms = platforms.unix; platforms = platforms.unix;
maintainers = with maintainers; [ MayNiklas ]; maintainers = with maintainers; [
flexiondotorg
MayNiklas
];
mainProgram = "owncast"; mainProgram = "owncast";
}; };
} }