forked from RepoMirrors/bemenu
nix: update default.nix
* reduce src fileset to avoid unneccessary rebuilds * test symbol visibility
This commit is contained in:
parent
d58c9dc365
commit
1c3eeb09d5
14
default.nix
14
default.nix
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user