diff --git a/default.nix b/default.nix index 90f9c67..5db5c02 100644 --- a/default.nix +++ b/default.nix @@ -19,10 +19,13 @@ with builtins; with lib; let - src = ./.; - version = readFile "${src}/VERSION"; + version = readFile ./VERSION; in stdenv.mkDerivation { - inherit src version; + src = with fileset; toSource { + root = ./.; + fileset = unions [ ./VERSION ./GNUmakefile ./bemenu.pc.in ./scripts ./lib ./man ./client ]; + }; + inherit version; pname = "bemenu"; strictDeps = true; @@ -64,6 +67,11 @@ in stdenv.mkDerivation { done ''; + doCheck = stdenv.isLinux; + checkPhase = '' + make check-symbols + ''; + meta = { homepage = "https://github.com/Cloudef/bemenu"; description = "Dynamic menu library and client program inspired by dmenu";