Skip to content

Commit

Permalink
nix: update default.nix
Browse files Browse the repository at this point in the history
* reduce src fileset to avoid unneccessary rebuilds
* test symbol visibility
  • Loading branch information
Cloudef committed Apr 2, 2024
1 parent d58c9dc commit 1c3eeb0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 1c3eeb0

Please sign in to comment.