12 inherit pname version;
14 src = fetchFromGitHub {
18 hash = "sha256-FJrBwjWBYwoiy8rWXn+jaVc1b35So1Rb9SjkUlNwAqE=";
21 vendorHash = "sha256-zZwunp/433oIYI5ZA3Pznq9jfvIZE5ZUJKxboVef8g0=";
23 subPackages = [ "." ];
27 # Pass versioning information via ldflags
29 "-X github.com/ory/kratos/driver/config.Version=${version}"
40 script/debug-entrypoint.sh
42 patchShebangs "''${files[@]}"
44 # patchShebangs doesn't work for this Makefile, do it manually
45 substituteInPlace Makefile --replace-fail '/usr/bin/env bash' '${stdenv.shell}'
49 mainProgram = "kratos";
50 description = "API-first Identity and User Management system that is built according to cloud architecture best practices";
51 homepage = "https://www.ory.sh/kratos/";
52 license = lib.licenses.asl20;
53 maintainers = with lib.maintainers; [ mrmebelman ];