This commit is contained in:
timd 2024-06-28 18:26:14 -04:00 committed by GitHub
commit 0dedbe5fdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View File

@ -1,4 +1,5 @@
{ {
self,
lib, lib,
stdenv, stdenv,
pkg-config, pkg-config,
@ -68,7 +69,16 @@ assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been remov
baseName = baseNameOf (toString name); baseName = baseNameOf (toString name);
in in
! (lib.hasSuffix ".nix" baseName); ! (lib.hasSuffix ".nix" baseName);
src = lib.cleanSource ../.; src = lib.cleanSource (
if self ? rev
then builtins.fetchGit {
url = "https://github.com/hyprwm/Hyprland";
inherit (self) rev;
submodules = true;
allRefs = true;
}
else ../.
);
}; };
postPatch = '' postPatch = ''

View File

@ -36,6 +36,7 @@ in {
version = "${props.version}+date=${date}_${self.shortRev or "dirty"}"; version = "${props.version}+date=${date}_${self.shortRev or "dirty"}";
commit = self.rev or ""; commit = self.rev or "";
inherit date; inherit date;
inherit (inputs) self;
}; };
hyprland-unwrapped = final.hyprland.override {wrapRuntimeDeps = false;}; hyprland-unwrapped = final.hyprland.override {wrapRuntimeDeps = false;};
hyprland-debug = final.hyprland.override {debug = true;}; hyprland-debug = final.hyprland.override {debug = true;};