nix: remove unused sonic-server

This commit is contained in:
Dmitriy Pleshevskiy 2022-11-25 23:20:04 +03:00
parent ddb59564f3
commit 42b46eb5ae
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
3 changed files with 12 additions and 38 deletions

View file

@ -34,31 +34,7 @@
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs",
"sonic-server": "sonic-server"
}
},
"sonic-server": {
"inputs": {
"flake-utils": [
"flake-utils"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1666618211,
"narHash": "sha256-kKeIM9dXUi8eYcvSomx8kqSqq9zmqMx4mE5wdpEZ6O8=",
"owner": "pleshevskiy",
"repo": "sonic",
"rev": "e83de87ebd2e29b210c8cc6e7dfed5d2f14a0d24",
"type": "github"
},
"original": {
"owner": "pleshevskiy",
"repo": "sonic",
"type": "github"
"nixpkgs": "nixpkgs"
}
}
},

View file

@ -2,25 +2,23 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
sonic-server = {
url = "github:pleshevskiy/sonic";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
};
outputs = inputs @ { self, nixpkgs, flake-utils, ... }:
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ inputs.sonic-server.overlays.default ];
};
pkgs = import nixpkgs { inherit system; };
in
{
devShell = pkgs.mkShell {
packages = with pkgs; [ cargo rustc rustfmt clippy rust-analyzer sonic-server inetutils ];
packages = with pkgs; [
cargo
cargo-watch
rustc
rustfmt
clippy
rust-analyzer
];
RUST_SRC_PATH = pkgs.rustPlatform.rustLibSrc;
};
});

View file

@ -20,7 +20,7 @@ fn should_list_all_words() {
let search_channel = search_start();
match search_channel.list(ListRequest::new(dest.clone())) {
Ok(object_ids) => assert_eq!(object_ids, vec!["beef", "skewers", "sweet", "teriyaki"]),
Err(e) => unreachable!(),
Err(_) => unreachable!(),
}
flush_bucket(COLLECTION, bucket);