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
16
flake.nix
16
flake.nix
@ -43,14 +43,20 @@
|
||||
{
|
||||
|
||||
overlay = final: prev: {
|
||||
statix = with final; (makeRustPlatform {
|
||||
inherit (rustChannel final) cargo rustc;
|
||||
}).buildRustPackage rec {
|
||||
|
||||
statix = with final;
|
||||
let
|
||||
pname = "statix";
|
||||
version = (lib.importTOML ./bin/Cargo.toml).package.version;
|
||||
packageMeta = (lib.importTOML ./bin/Cargo.toml).package;
|
||||
rustPlatform = makeRustPlatform {
|
||||
inherit (rustChannel final) cargo rustc;
|
||||
};
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
inherit pname;
|
||||
inherit (packageMeta) version;
|
||||
|
||||
src = gitignoreSource ./.;
|
||||
|
||||
cargoLock.lockFile = ./Cargo.lock;
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user