diff options
author | Jared Baur <jaredbaur@fastmail.com> | 2024-01-07 18:24:29 -0800 |
---|---|---|
committer | Jared Baur <jaredbaur@fastmail.com> | 2024-01-08 05:31:21 +0000 |
commit | 52e8e10740de15382c8f60f5fb314c2d19848933 (patch) | |
tree | 239462b412918b9130144793f9ab821a1fc849bc /pkgs/tools/security | |
parent | 61402f77f693f5b1091bb8807e0a6be1a5b65997 (diff) |
swtpm: add meta.mainProgram
In the process converts swtpm to use the "finalAttrs"-style mkDerivation.
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r-- | pkgs/tools/security/swtpm/default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/tools/security/swtpm/default.nix b/pkgs/tools/security/swtpm/default.nix index d132e27a8059c..8c4785dee62b2 100644 --- a/pkgs/tools/security/swtpm/default.nix +++ b/pkgs/tools/security/swtpm/default.nix @@ -14,14 +14,14 @@ , nixosTests }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "swtpm"; version = "0.8.1"; src = fetchFromGitHub { owner = "stefanberger"; repo = "swtpm"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; sha256 = "sha256-QKR5S7FlMFDw4+VpyRdqixMWyzLpQkf3QCUceQvsliU="; }; @@ -100,5 +100,6 @@ stdenv.mkDerivation rec { homepage = "https://github.com/stefanberger/swtpm"; license = licenses.bsd3; maintainers = [ maintainers.baloo ]; + mainProgram = "swtpm"; }; -} +}) |