nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 44 lines 1.0 kB 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 (finalAttrs: { 13 pname = "sql-formatter"; 14 version = "15.7.0"; 15 16 src = fetchFromGitHub { 17 owner = "sql-formatter-org"; 18 repo = "sql-formatter"; 19 rev = "v${finalAttrs.version}"; 20 hash = "sha256-k105xoppmxW1jSbkzbqHF7bg/IbY1P9kZVwa3pdKF7k="; 21 }; 22 23 yarnOfflineCache = fetchYarnDeps { 24 yarnLock = "${finalAttrs.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})