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;
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";