mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 17:05:58 +01:00
nix: use cleanSource (#518)
This commit is contained in:
parent
db35a1c6d0
commit
c136078239
1 changed files with 11 additions and 2 deletions
|
@ -27,7 +27,16 @@
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "hyprland" + lib.optionalString debug "-debug";
|
pname = "hyprland" + lib.optionalString debug "-debug";
|
||||||
inherit version;
|
inherit version;
|
||||||
src = ../.;
|
|
||||||
|
src = lib.cleanSourceWith {
|
||||||
|
filter = name: type: let
|
||||||
|
baseName = baseNameOf (toString name);
|
||||||
|
in
|
||||||
|
! (
|
||||||
|
lib.hasSuffix ".nix" baseName
|
||||||
|
);
|
||||||
|
src = lib.cleanSource ../.;
|
||||||
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
meson
|
meson
|
||||||
|
@ -59,7 +68,7 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
mesonFlags = builtins.concatLists [
|
mesonFlags = builtins.concatLists [
|
||||||
(lib.optional (!enableXWayland) "-DNO_XWAYLAND=true")
|
(lib.optional (!enableXWayland) "-DNO_XWAYLAND=true")
|
||||||
(lib.optional (legacyRenderer) "-DLEGACY_RENDERER:STRING=true")
|
(lib.optional legacyRenderer "-DLEGACY_RENDERER:STRING=true")
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
|
Loading…
Reference in a new issue