nixd: use finalAttrs pattern
This commit is contained in:
parent
d69a2737c4
commit
c1f5835e6b
1 changed files with 4 additions and 4 deletions
|
@ -17,14 +17,14 @@
|
||||||
, pkg-config
|
, pkg-config
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "nixd";
|
pname = "nixd";
|
||||||
version = "2.0.2";
|
version = "2.0.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nix-community";
|
owner = "nix-community";
|
||||||
repo = "nixd";
|
repo = "nixd";
|
||||||
rev = version;
|
rev = finalAttrs.version;
|
||||||
hash = "sha256-K6atInl+/58nzMj4JJHds//HY7luBRmX79g+Arj6iUw=";
|
hash = "sha256-K6atInl+/58nzMj4JJHds//HY7luBRmX79g+Arj6iUw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -83,10 +83,10 @@ stdenv.mkDerivation rec {
|
||||||
meta = {
|
meta = {
|
||||||
description = "Nix language server";
|
description = "Nix language server";
|
||||||
homepage = "https://github.com/nix-community/nixd";
|
homepage = "https://github.com/nix-community/nixd";
|
||||||
changelog = "https://github.com/nix-community/nixd/releases/tag/${version}";
|
changelog = "https://github.com/nix-community/nixd/releases/tag/${finalAttrs.version}";
|
||||||
license = lib.licenses.lgpl3Plus;
|
license = lib.licenses.lgpl3Plus;
|
||||||
maintainers = with lib.maintainers; [ inclyc Ruixi-rebirth marsam ];
|
maintainers = with lib.maintainers; [ inclyc Ruixi-rebirth marsam ];
|
||||||
mainProgram = "nixd";
|
mainProgram = "nixd";
|
||||||
platforms = lib.platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue