-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
33 lines (28 loc) · 822 Bytes
/
default.nix
File metadata and controls
33 lines (28 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{pkgs}: let
quotes_file = ./data/quotes.json;
test_quotes_file = ./data/test.json;
in
pkgs.rustPlatform.buildRustPackage {
pname = "rust_cli_task";
version = "1.0.0";
src = pkgs.lib.cleanSource ./.;
cargoLock.lockFile = ./Cargo.lock;
# Compile time dependencies
# nativeBuildInputs = with pkgs; [
# rustc
# cargo
# ];
postInstall = ''
mkdir -p $out/data
cp ${quotes_file} $out/data/quotes.json
cp ${test_quotes_file} $out/data/test.json
'';
# Tests require network access. Skipping.
doCheck = true;
meta = {
description = "Fast line-oriented regex search tool, similar to ag and ack";
homepage = "https://github.com/bahrom04/rust_cli_task";
license = pkgs.lib.licenses.unlicense;
maintainers = [];
};
}