Merge pull request #310145 from MrMebelMan/fix/kratos

authored by Pavol Rusnak and committed by GitHub 03d7f4e1 766d1346

+21 -9
+21 -9
pkgs/applications/misc/kratos/default.nix
··· 1 - { fetchFromGitHub, buildGoModule, lib, stdenv }: 2 - 3 - buildGoModule rec { 1 + { 2 + fetchFromGitHub, 3 + buildGoModule, 4 + lib, 5 + stdenv 6 + }: 7 + let 4 8 pname = "kratos"; 5 9 version = "1.1.0"; 10 + in 11 + buildGoModule { 12 + inherit pname version; 6 13 7 14 src = fetchFromGitHub { 8 15 owner = "ory"; ··· 17 24 18 25 tags = [ "sqlite" ]; 19 26 27 + # Pass versioning information via ldflags 28 + ldflags = [ 29 + "-X github.com/ory/kratos/driver/config.Version=${version}" 30 + ]; 31 + 20 32 doCheck = false; 21 33 22 34 preBuild = '' ··· 30 42 patchShebangs "''${files[@]}" 31 43 32 44 # patchShebangs doesn't work for this Makefile, do it manually 33 - substituteInPlace Makefile --replace '/bin/bash' '${stdenv.shell}' 45 + substituteInPlace Makefile --replace-fail '/usr/bin/env bash' '${stdenv.shell}' 34 46 ''; 35 47 36 - meta = with lib; { 37 - maintainers = with maintainers; [ mrmebelman ]; 38 - homepage = "https://www.ory.sh/kratos/"; 39 - license = licenses.asl20; 48 + meta = { 49 + mainProgram = "kratos"; 40 50 description = "An API-first Identity and User Management system that is built according to cloud architecture best practices"; 41 - mainProgram = "kratos"; 51 + homepage = "https://www.ory.sh/kratos/"; 52 + license = lib.licenses.asl20; 53 + maintainers = with lib.maintainers; [ mrmebelman ]; 42 54 }; 43 55 }