mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-04 03:03:42 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
38 lines
954 B
Nix
38 lines
954 B
Nix
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sqlcheck";
|
|
version = "1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jarulraj";
|
|
repo = "sqlcheck";
|
|
rev = "v${version}";
|
|
hash = "sha256-rGqCtEO2K+OT44nYU93mF1bJ07id+ixPkRSC8DcO6rY=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
patches = [
|
|
# Fix gcc-13 build failure:
|
|
# https://github.com/jarulraj/sqlcheck/pull/62
|
|
(fetchpatch {
|
|
name = "gcc-13.patch";
|
|
url = "https://github.com/jarulraj/sqlcheck/commit/ca131db13b860cf1d9194a1c7f7112f28f49acca.patch";
|
|
hash = "sha256-uoF7rYvjdIUu82JCLXq/UGswgwM6JCpmABP4ItWjDe4=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
inherit (src.meta) homepage;
|
|
description = "Automatically identify anti-patterns in SQL queries";
|
|
mainProgram = "sqlcheck";
|
|
license = licenses.asl20;
|
|
platforms = platforms.all;
|
|
maintainers = [ ];
|
|
};
|
|
}
|