mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
owncast: 0.2.0 -> 0.2.3
This commit is contained in:
parent
2615e4f75c
commit
4d49b3bc17
1 changed files with 16 additions and 9 deletions
|
@ -5,12 +5,11 @@
|
|||
nixosTests,
|
||||
bash,
|
||||
which,
|
||||
ffmpeg,
|
||||
ffmpeg-full,
|
||||
makeBinaryWrapper,
|
||||
}:
|
||||
|
||||
let
|
||||
version = "0.2.0";
|
||||
version = "0.2.3";
|
||||
in
|
||||
buildGoModule {
|
||||
pname = "owncast";
|
||||
|
@ -19,21 +18,27 @@ buildGoModule {
|
|||
owner = "owncast";
|
||||
repo = "owncast";
|
||||
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 ];
|
||||
|
||||
# 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 = ''
|
||||
wrapProgram $out/bin/owncast \
|
||||
--prefix PATH : ${
|
||||
lib.makeBinPath [
|
||||
bash
|
||||
which
|
||||
ffmpeg
|
||||
ffmpeg-full
|
||||
]
|
||||
}
|
||||
'';
|
||||
|
@ -51,8 +56,10 @@ buildGoModule {
|
|||
homepage = "https://owncast.online";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ MayNiklas ];
|
||||
maintainers = with maintainers; [
|
||||
flexiondotorg
|
||||
MayNiklas
|
||||
];
|
||||
mainProgram = "owncast";
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue