mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
25bef2d8f9
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
14 lines
523 B
Nix
14 lines
523 B
Nix
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "ripgrep";
|
|
meta = with pkgs.lib.maintainers; { maintainers = [ nequissimus ]; };
|
|
|
|
nodes.ripgrep = { pkgs, ... }: { environment.systemPackages = [ pkgs.ripgrep ]; };
|
|
|
|
testScript = ''
|
|
ripgrep.succeed('echo "abc\nbcd\ncde" > /tmp/foo')
|
|
assert "bcd" in ripgrep.succeed("rg -N 'bcd' /tmp/foo")
|
|
assert "bcd\ncde" in ripgrep.succeed("rg -N 'cd' /tmp/foo")
|
|
assert "ripgrep ${pkgs.ripgrep.version}" in ripgrep.succeed("rg --version | head -1")
|
|
'';
|
|
})
|