File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 craneLib = crane . mkLib pkgs ;
2323 libPath = with pkgs ; lib . makeLibraryPath [ wayland vulkan-loader ] ;
2424
25- commonArgs = {
26- src = craneLib . cleanCargoSource ./. ;
25+ commonArgs = with pkgs ; {
26+ src = lib . fileset . toSource {
27+ root = ./. ;
28+ fileset = lib . fileset . unions [
29+ ( craneLib . fileset . commonCargoSources ./. )
30+ ( lib . fileset . maybeMissing ./assets )
31+ ] ;
32+ } ;
2733 strictDeps = true ;
2834
2935 buildInputs = with pkgs ; [ makeWrapper libxkbcommon ] ;
3036 } ;
3137
32- waystart = craneLib . buildPackage (
33- commonArgs
34- // {
35- cargoArtifacts = craneLib . buildDepsOnly commonArgs ;
38+ cargoArtifacts = craneLib . buildDepsOnly ( commonArgs // {
39+ pname = "waystart-deps" ;
40+ } ) ;
41+
42+ waystartClippy = craneLib . cargoClippy ( commonArgs // {
43+ inherit cargoArtifacts ;
44+ cargoClippyExtraArgs = "--all-targets -- --deny warnings" ;
45+ } ) ;
46+
47+ waystart = craneLib . buildPackage ( commonArgs // {
48+ inherit cargoArtifacts ;
3649 postInstall = ''
3750 wrapProgram "$out/bin/waystart" --prefix LD_LIBRARY_PATH : "${ libPath } "
3851 '' ;
3952 }
4053 ) ;
4154 in
4255 {
43- checks = { inherit waystart ; } ;
56+ checks = { inherit waystart waystartClippy ; } ;
4457 packages . default = waystart ;
4558 apps . default = flake-utils . lib . mkApp {
4659 drv = waystart ;
You can’t perform that action at this time.
0 commit comments