swtpm: add meta.mainProgram

In the process converts swtpm to use the "finalAttrs"-style
mkDerivation.
This commit is contained in:
Jared Baur 2024-01-07 18:24:29 -08:00
parent 61402f77f6
commit 52e8e10740
No known key found for this signature in database

View file

@ -14,14 +14,14 @@
, nixosTests , nixosTests
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "swtpm"; pname = "swtpm";
version = "0.8.1"; version = "0.8.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "stefanberger"; owner = "stefanberger";
repo = "swtpm"; repo = "swtpm";
rev = "v${version}"; rev = "v${finalAttrs.version}";
sha256 = "sha256-QKR5S7FlMFDw4+VpyRdqixMWyzLpQkf3QCUceQvsliU="; sha256 = "sha256-QKR5S7FlMFDw4+VpyRdqixMWyzLpQkf3QCUceQvsliU=";
}; };
@ -100,5 +100,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/stefanberger/swtpm"; homepage = "https://github.com/stefanberger/swtpm";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = [ maintainers.baloo ]; maintainers = [ maintainers.baloo ];
mainProgram = "swtpm";
}; };
} })