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