Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 43 lines 919 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchYarnDeps, 6 yarnConfigHook, 7 yarnBuildHook, 8 yarnInstallHook, 9 nodejs, 10 nix-update-script, 11}: 12stdenv.mkDerivation (finalAttrs: { 13 pname = "coc-css"; 14 version = "2.1.0"; 15 16 src = fetchFromGitHub { 17 owner = "neoclide"; 18 repo = "coc-css"; 19 rev = finalAttrs.version; 20 hash = "sha256-ASFg5LM1NbpK+Df1TPs+O13WmZktw+BtfsCJagF5nUc="; 21 }; 22 23 yarnOfflineCache = fetchYarnDeps { 24 yarnLock = "${finalAttrs.src}/yarn.lock"; 25 hash = "sha256-JJXpsccO9MZ0D15JUZtTebX1zUMgwGEzSOm7auw5pQo="; 26 }; 27 28 nativeBuildInputs = [ 29 yarnConfigHook 30 yarnBuildHook 31 nodejs 32 yarnInstallHook 33 ]; 34 35 passthru.updateScript = nix-update-script { }; 36 37 meta = { 38 description = "Css language server extension for coc.nvim"; 39 homepage = "https://github.com/neoclide/coc-css"; 40 license = lib.licenses.mit; 41 maintainers = with lib.maintainers; [ pyrox0 ]; 42 }; 43})