1 { lib, buildGoModule, fetchFromGitHub, coreutils, testers, skeema }:
7 src = fetchFromGitHub {
11 hash = "sha256-MdaMK65PWreIPTuhsm+2ZVRQ8t/wYijkENk8qvX9oEM=";
18 ldflags = [ "-s" "-w" ];
21 # Fix tests expecting /usr/bin/printf and /bin/echo
22 substituteInPlace skeema_cmd_test.go \
23 --replace /usr/bin/printf "${coreutils}/bin/printf"
25 substituteInPlace internal/fs/dir_test.go \
26 --replace /bin/echo "${coreutils}/bin/echo" \
27 --replace /usr/bin/printf "${coreutils}/bin/printf"
29 substituteInPlace internal/applier/ddlstatement_test.go \
30 --replace /bin/echo "${coreutils}/bin/echo"
36 # Tests requiring network access to gitlab.com
44 # Fails with 'internal/fs/testdata/cfgsymlinks1/validrel/.skeema is a symlink pointing outside of its repo'.
45 "TestParseDirSymlinks"
48 [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
50 passthru.tests.version = testers.testVersion {
55 description = "Declarative pure-SQL schema management for MySQL and MariaDB";
56 homepage = "https://skeema.io/";
57 license = licenses.asl20;
58 maintainers = with maintainers; [ aaronjheng ];
59 mainProgram = "skeema";