nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5 pkg-config,
6 openssl,
7}:
8
9let
10 version = "0.4.3";
11in
12rustPlatform.buildRustPackage rec {
13 pname = "schemamap";
14 inherit version;
15
16 src = fetchFromGitHub {
17 owner = "schemamap";
18 repo = "schemamap";
19 rev = "v${version}";
20 hash = "sha256-YR7Ucd8/Z1hOUNokmfSVP2ZxDL7qLb6SZ86/S7V/GKk=";
21 };
22
23 sourceRoot = "${src.name}/rust";
24
25 cargoHash = "sha256-8UmLAT7Etb9MARoGhvOHPhkdR/8jCEAjAK/mWRHL9hk=";
26
27 buildInputs = [ openssl ];
28
29 nativeBuildInputs = [ pkg-config ];
30
31 meta = {
32 changelog = "https://github.com/schemamap/schemamap/releases/tag/v${version}";
33 description = "Instant batch data import for Postgres";
34 homepage = "https://schemamap.io";
35 license = lib.licenses.mit;
36 mainProgram = "schemamap";
37 maintainers = with lib.maintainers; [ thenonameguy ];
38 };
39}