11 pname = "olaris-server";
12 version = "unstable-2022-06-11";
14 src = fetchFromGitLab {
17 rev = "bdb2aeb1595c941210249164a97c12404c1ae0d8";
18 hash = "sha256-Uhnh6GC85ORKnfHeYNtbSA40osuscxXDF5/kXJrF2Cs=";
22 olaris-react = fetchzip {
23 url = "https://gitlab.com/api/v4/projects/olaris%2Folaris-react/jobs/artifacts/v${version}/download?job=build";
25 hash = "sha256-MkxBf/mGvtiOu0e79bMpd9Z/D0eOxhzPE+bKic//viM=";
28 # cannot build olaris-react https://github.com/NixOS/nixpkgs/issues/203708
29 cp -r ${olaris-react} react/build
36 "-X gitlab.com/olaris/olaris-server/helpers.Version=${version}"
39 vendorHash = "sha256-bw8zvDGFBci9bELsxAD0otpNocBnO8aAcgyohLZ3Mv0=";
41 nativeBuildInputs = [ installShellFiles makeWrapper ];
43 # integration tests require network access
47 installShellCompletion --cmd olaris-server \
48 --bash <($out/bin/olaris-server completion bash) \
49 --fish <($out/bin/olaris-server completion fish) \
50 --zsh <($out/bin/olaris-server completion zsh)
51 wrapProgram $out/bin/olaris-server --prefix PATH : ${lib.makeBinPath [ffmpeg]}
55 description = "Media manager and transcoding server";
56 homepage = "https://gitlab.com/olaris/olaris-server";
57 changelog = "https://gitlab.com/olaris/olaris-server/-/releases/v${version}";
58 license = licenses.gpl3Only;
59 maintainers = with maintainers; [ urandom ];