simplify flake a bit, remove statix warning

This commit is contained in:
Akshay 2021-11-01 21:15:26 +05:30
parent a2629a3def
commit 151187a47a

View File

@ -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; {