Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildNpmPackage, 4 fetchFromGitHub, 5}: 6 7let 8 version = "15.0.2"; 9 pname = "cabal-cli"; 10in 11buildNpmPackage { 12 inherit version pname; 13 14 src = fetchFromGitHub { 15 owner = "cabal-club"; 16 repo = "cabal-cli"; 17 rev = "v${version}"; 18 hash = "sha256-DZ+F+pgPc8WuiBhLgxNO5es5lA996fJdvZyg6QjfrHg="; 19 }; 20 21 npmDepsHash = "sha256-Oqyx6pytDrYg1JbHawKxnnWEJxaFUaM9LcREizh3LFQ="; 22 23 dontNpmBuild = true; 24 25 env.NODE_OPTIONS = "--openssl-legacy-provider"; 26 27 meta = { 28 description = "Terminal client for Cabal, the p2p chat platform"; 29 homepage = "https://cabal.chat"; 30 license = lib.licenses.agpl3Plus; 31 maintainers = with lib.maintainers; [ kototama ]; 32 }; 33}