Commit 93d84f95 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

autoprefixer.tests: fix the eval

Without the change thee val fails as:

    $ nix build --no-link -f. autoprefixer.tests
    ...
       error: attribute 'packageName' missing
       at pkgs/by-name/au/autoprefixer/tests/simple-execution.nix:4:26:
            3| let
            4|   inherit (autoprefixer) packageName version;
             |                          ^
            5| in
parent 48b8f3cb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
{ runCommand, autoprefixer }:

let
  inherit (autoprefixer) packageName version;
  inherit (autoprefixer) pname version;
in

runCommand "${packageName}-tests" { meta.timeout = 60; }
runCommand "${pname}-tests" { meta.timeout = 60; }
  ''
    # get version of installed program and compare with package version
    claimed_version="$(${autoprefixer}/bin/autoprefixer --version | awk '{print $2}')"