nix: update default.nix

* reduce src fileset to avoid unneccessary rebuilds
* test symbol visibility
This commit is contained in:
Jari Vetoniemi 2024-04-02 19:07:45 +09:00
parent d58c9dc365
commit 1c3eeb09d5

View File

@ -19,10 +19,13 @@ with builtins;
with lib; with lib;
let let
src = ./.; version = readFile ./VERSION;
version = readFile "${src}/VERSION";
in stdenv.mkDerivation { 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"; pname = "bemenu";
strictDeps = true; strictDeps = true;
@ -64,6 +67,11 @@ in stdenv.mkDerivation {
done done
''; '';
doCheck = stdenv.isLinux;
checkPhase = ''
make check-symbols
'';
meta = { meta = {
homepage = "https://github.com/Cloudef/bemenu"; homepage = "https://github.com/Cloudef/bemenu";
description = "Dynamic menu library and client program inspired by dmenu"; description = "Dynamic menu library and client program inspired by dmenu";