sydbox: use finalAttrs pattern (#392875)
This commit is contained in:
@@ -7,11 +7,10 @@
|
||||
pkg-config,
|
||||
rustPlatform,
|
||||
scdoc,
|
||||
sydbox,
|
||||
testers,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "sydbox";
|
||||
version = "3.32.6";
|
||||
|
||||
@@ -24,7 +23,7 @@ rustPlatform.buildRustPackage rec {
|
||||
domain = "gitlab.exherbo.org";
|
||||
owner = "Sydbox";
|
||||
repo = "sydbox";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-7tU1H8Du2O4Ay+isZwSUcx+Ws9gr0Djq5uQeRPCuQEo=";
|
||||
};
|
||||
|
||||
@@ -70,7 +69,7 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
passthru = {
|
||||
tests.version = testers.testVersion {
|
||||
package = sydbox;
|
||||
package = finalAttrs.finalPackage;
|
||||
command = "syd -V";
|
||||
};
|
||||
|
||||
@@ -80,7 +79,7 @@ rustPlatform.buildRustPackage rec {
|
||||
meta = {
|
||||
description = "seccomp-based application sandbox";
|
||||
homepage = "https://gitlab.exherbo.org/sydbox/sydbox";
|
||||
changelog = "https://gitlab.exherbo.org/sydbox/sydbox/-/blob/${src.tag}/ChangeLog.md";
|
||||
changelog = "https://gitlab.exherbo.org/sydbox/sydbox/-/blob/${finalAttrs.src.tag}/ChangeLog.md";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [
|
||||
mvs
|
||||
@@ -89,4 +88,4 @@ rustPlatform.buildRustPackage rec {
|
||||
mainProgram = "syd";
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user