···11+{ lib
22+, rustPlatform
33+, fetchFromGitHub
44+}:
55+66+rustPlatform.buildRustPackage rec {
77+ pname = "sleek";
88+ version = "0.3.0";
99+1010+ src = fetchFromGitHub {
1111+ owner = "nrempel";
1212+ repo = "sleek";
1313+ rev = "v${version}";
1414+ hash = "sha256-VQ0LmKhFsC12qoXCFHxtV5E+J7eRvZMVH0j+5r8pDk8=";
1515+ };
1616+1717+ # 0.3.0 has been tagged before the actual Cargo.lock bump, resulting in an inconsitent lock file.
1818+ # To work around this, the Cargo.lock below is from the commit right after the tag:
1919+ # https://github.com/nrempel/sleek/commit/18c5457a813a16e3eebfc1c6f512131e6e8daa02
2020+ postPatch = ''
2121+ ln -s --force ${./Cargo.lock} Cargo.lock
2222+ '';
2323+2424+ cargoLock.lockFile = ./Cargo.lock;
2525+2626+ meta = with lib; {
2727+ description = "A CLI tool for formatting SQL";
2828+ homepage = "https://github.com/nrempel/sleek";
2929+ license = licenses.mit;
3030+ maintainers = with maintainers; [ xrelkd ];
3131+ };
3232+}
+2
pkgs/top-level/all-packages.nix
···16635166351663616636 shmig = callPackage ../development/tools/database/shmig { };
16637166371663816638+ sleek = callPackage ../development/tools/database/sleek { };
1663916639+1663816640 smlfmt = callPackage ../development/tools/smlfmt { };
16639166411664016642 # smlnjBootstrap should be redundant, now that smlnj works on Darwin natively