mirror of
https://github.com/nerdypepper/statix.git
synced 2024-09-11 13:45:32 +03:00
simplify flake a bit, remove statix warning
This commit is contained in:
parent
a2629a3def
commit
151187a47a
30
flake.nix
30
flake.nix
@ -43,22 +43,28 @@
|
|||||||
{
|
{
|
||||||
|
|
||||||
overlay = final: prev: {
|
overlay = final: prev: {
|
||||||
statix = with final; (makeRustPlatform {
|
|
||||||
inherit (rustChannel final) cargo rustc;
|
|
||||||
}).buildRustPackage rec {
|
|
||||||
pname = "statix";
|
|
||||||
version = (lib.importTOML ./bin/Cargo.toml).package.version;
|
|
||||||
|
|
||||||
src = gitignoreSource ./.;
|
statix = with final;
|
||||||
|
let
|
||||||
|
pname = "statix";
|
||||||
|
packageMeta = (lib.importTOML ./bin/Cargo.toml).package;
|
||||||
|
rustPlatform = makeRustPlatform {
|
||||||
|
inherit (rustChannel final) cargo rustc;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
rustPlatform.buildRustPackage {
|
||||||
|
inherit pname;
|
||||||
|
inherit (packageMeta) version;
|
||||||
|
|
||||||
cargoLock.lockFile = ./Cargo.lock;
|
src = gitignoreSource ./.;
|
||||||
|
cargoLock.lockFile = ./Cargo.lock;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Lints and suggestions for the Nix programming language";
|
description = "Lints and suggestions for the Nix programming language";
|
||||||
homepage = "https://git.peppe.rs/languages/statix/about";
|
homepage = "https://git.peppe.rs/languages/statix/about";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
statix-vim =
|
statix-vim =
|
||||||
with final; vimUtils.buildVimPlugin {
|
with final; vimUtils.buildVimPlugin {
|
||||||
|
Loading…
Reference in New Issue
Block a user