mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
a4811f1fa3
This way updating these values is much less hacky. A downside is that tools like nix-update will no longer be able to update these, but this should not be too important for invidious.
19 lines
408 B
Nix
19 lines
408 B
Nix
{ stdenvNoCC, cacert, crystal, openssl, pkg-config, invidious }:
|
|
|
|
let
|
|
versions = builtins.fromJSON (builtins.readFile ./versions.json);
|
|
in
|
|
stdenvNoCC.mkDerivation {
|
|
name = "videojs";
|
|
|
|
inherit (invidious) src;
|
|
|
|
builder = ./videojs.sh;
|
|
|
|
nativeBuildInputs = [ cacert crystal openssl pkg-config ];
|
|
|
|
outputHashAlgo = "sha256";
|
|
outputHashMode = "recursive";
|
|
outputHash = versions.videojs.sha256;
|
|
}
|