lol
at master 44 lines 972 B view raw
1{ 2 lib, 3 stdenv, 4 fetchYarnDeps, 5 fetchFromGitHub, 6 yarnBuildHook, 7 yarnConfigHook, 8 yarnInstallHook, 9 nodejs, 10 nix-update-script, 11}: 12stdenv.mkDerivation rec { 13 pname = "sql-formatter"; 14 version = "15.6.9"; 15 16 src = fetchFromGitHub { 17 owner = "sql-formatter-org"; 18 repo = "sql-formatter"; 19 rev = "v${version}"; 20 hash = "sha256-ADyV7rQ54R4QrjLLZy5Pg9KEaW3G5ZY/TssB1Ot/w2o="; 21 }; 22 23 yarnOfflineCache = fetchYarnDeps { 24 yarnLock = "${src}/yarn.lock"; 25 hash = "sha256-zcCYGTuaPkizZHc4K6RAPWwMnP5LtnyaLbF9xcPpNBs="; 26 }; 27 28 nativeBuildInputs = [ 29 yarnBuildHook 30 yarnConfigHook 31 yarnInstallHook 32 nodejs 33 ]; 34 35 passthru.updateScript = nix-update-script { }; 36 37 meta = { 38 description = "Whitespace formatter for different query languages"; 39 homepage = "https://sql-formatter-org.github.io/sql-formatter"; 40 license = lib.licenses.mit; 41 mainProgram = "sql-formatter"; 42 maintainers = with lib.maintainers; [ pyrox0 ]; 43 }; 44}