evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / sc / schemamap / package.nix
blobb3999fce965c759e4da3e40419d08429237f8db5
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   rustPlatform,
6   pkg-config,
7   openssl,
8   darwin,
9 }:
11 let
12   version = "0.4.3";
14 rustPlatform.buildRustPackage rec {
15   pname = "schemamap";
16   inherit version;
18   src = fetchFromGitHub {
19     owner = "schemamap";
20     repo = "schemamap";
21     rev = "v${version}";
22     hash = "sha256-YR7Ucd8/Z1hOUNokmfSVP2ZxDL7qLb6SZ86/S7V/GKk=";
23   };
25   sourceRoot = "${src.name}/rust";
27   cargoHash = "sha256-iq1/8oWVgiqdYfmJKzrIe9gkCz7fDw08QcaQgfd7vuo=";
29   buildInputs =
30     [ openssl ]
31     ++ lib.optionals stdenv.hostPlatform.isDarwin (
32       with darwin.apple_sdk;
33       [
34         frameworks.Security
35         frameworks.CoreFoundation
36         frameworks.CoreServices
37         frameworks.SystemConfiguration
38       ]
39     );
41   nativeBuildInputs = [ pkg-config ];
43   meta = {
44     changelog = "https://github.com/schemamap/schemamap/releases/tag/v${version}";
45     description = "Instant batch data import for Postgres";
46     homepage = "https://schemamap.io";
47     license = lib.licenses.mit;
48     mainProgram = "schemamap";
49     maintainers = with lib.maintainers; [ thenonameguy ];
50   };