mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
havn: use finalAttrs pattern
This commit is contained in:
parent
d0fb58c032
commit
69876877ee
1 changed files with 4 additions and 4 deletions
|
@ -4,14 +4,14 @@
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
pname = "havn";
|
pname = "havn";
|
||||||
version = "0.2.1";
|
version = "0.2.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mrjackwills";
|
owner = "mrjackwills";
|
||||||
repo = "havn";
|
repo = "havn";
|
||||||
tag = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-SXsCJzKfm77/IH3H7L5STylusmlN9DN4xd12Vt6L3TM=";
|
hash = "sha256-SXsCJzKfm77/IH3H7L5STylusmlN9DN4xd12Vt6L3TM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -29,10 +29,10 @@ rustPlatform.buildRustPackage rec {
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://github.com/mrjackwills/havn";
|
homepage = "https://github.com/mrjackwills/havn";
|
||||||
description = "Fast configurable port scanner with reasonable defaults";
|
description = "Fast configurable port scanner with reasonable defaults";
|
||||||
changelog = "https://github.com/mrjackwills/havn/blob/v${version}/CHANGELOG.md";
|
changelog = "https://github.com/mrjackwills/havn/blob/v${finalAttrs.version}/CHANGELOG.md";
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = with lib.maintainers; [ luftmensch-luftmensch ];
|
maintainers = with lib.maintainers; [ luftmensch-luftmensch ];
|
||||||
mainProgram = "havn";
|
mainProgram = "havn";
|
||||||
platforms = lib.platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue