Merge pull request #285827 from nikstur/improve-tmli-auth

tmli-auth: improve the derivation

authored by

Jacek Galowicz and committed by
GitHub
512d5227 156d2574

+10 -10
+10 -10
pkgs/by-name/tl/tlmi-auth/package.nix
··· 6 6 , ninja 7 7 , openssl 8 8 }: 9 - let 10 - name = "tlmi-auth"; 9 + 10 + stdenv.mkDerivation (finalAttrs: { 11 + pname = "tlmi-auth"; 11 12 version = "1.0.1"; 12 - in 13 - stdenv.mkDerivation { 14 - pname = name; 15 - version = version; 16 13 17 14 src = fetchFromGitHub { 18 15 owner = "lenovo"; 19 - repo = name; 20 - rev = "v${version}"; 16 + repo = "tlmi-auth"; 17 + rev = "v${finalAttrs.version}"; 21 18 hash = "sha256-/juXQrb3MsQ6FxmrAa7E1f0vIMu1397tZ1pzLfr56M4="; 22 19 }; 23 20 ··· 25 22 meson 26 23 ninja 27 24 pkg-config 25 + ]; 26 + 27 + buildInputs = [ 28 28 openssl 29 29 ]; 30 30 ··· 32 32 homepage = "https://github.com/lenovo/tlmi-auth"; 33 33 maintainers = with maintainers; [ snpschaaf ]; 34 34 description = "Utility for creating signature strings needed for thinklmi certificate based authentication"; 35 - mainProgram = name; 35 + mainProgram = "tlmi-auth"; 36 36 license = licenses.gpl2; 37 37 platforms = platforms.linux; 38 38 }; 39 - } 39 + })