swtpm: add meta.mainProgram
In the process converts swtpm to use the "finalAttrs"-style mkDerivation.
This commit is contained in:
parent
61402f77f6
commit
52e8e10740
1 changed files with 4 additions and 3 deletions
|
@ -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";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue