swtpm: add meta.mainProgram

In the process converts swtpm to use the "finalAttrs"-style
mkDerivation.
This commit is contained in:
Jared Baur
2024-01-08 05:31:21 +00:00
parent 61402f77f6
commit 52e8e10740
+4 -3
View File
@@ -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";
};
}
})