mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
25bef2d8f9
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
12 lines
443 B
Nix
12 lines
443 B
Nix
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "lsd";
|
|
meta = with pkgs.lib.maintainers; { maintainers = [ nequissimus ]; };
|
|
|
|
nodes.lsd = { pkgs, ... }: { environment.systemPackages = [ pkgs.lsd ]; };
|
|
|
|
testScript = ''
|
|
lsd.succeed('echo "abc" > /tmp/foo')
|
|
assert "4 B /tmp/foo" in lsd.succeed('lsd --classic --blocks "size,name" -l /tmp/foo')
|
|
assert "lsd ${pkgs.lsd.version}" in lsd.succeed("lsd --version")
|
|
'';
|
|
})
|