Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nix: add hyprlang #121

Merged
merged 2 commits into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
description = "Hyprpaper is a blazing fast Wayland wallpaper utility with IPC controls";

inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

hyprlang.url = "github:hyprwm/hyprlang";
};

outputs = {
self,
nixpkgs,
...
}: let
} @ inputs: let
inherit (nixpkgs) lib;
genSystems = lib.genAttrs [
# Add more systems if they are supported
Expand All @@ -23,9 +27,10 @@
in {
overlays.default = _: prev: rec {
hyprpaper = prev.callPackage ./nix/default.nix {
stdenv = prev.gcc12Stdenv;
stdenv = prev.gcc13Stdenv;
version = "0.pre" + "+date=" + (mkDate (self.lastModifiedDate or "19700101")) + "_" + (self.shortRev or "dirty");
inherit (prev.xorg) libXdmcp;
inherit (inputs.hyprlang.packages.${prev.system}) hyprlang;
};
hyprpaper-debug = hyprpaper.override {debug = true;};
};
Expand Down
6 changes: 6 additions & 0 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
cmake,
ninja,
cairo,
expat,
file,
fribidi,
hyprlang,
libdatrie,
libGL,
libjpeg,
Expand All @@ -16,6 +18,7 @@
libwebp,
pango,
pcre,
pcre2,
util-linux,
wayland,
wayland-protocols,
Expand All @@ -37,8 +40,10 @@ stdenv.mkDerivation {

buildInputs = [
cairo
expat
file
fribidi
hyprlang
libdatrie
libGL
libjpeg
Expand All @@ -48,6 +53,7 @@ stdenv.mkDerivation {
libwebp
pango
pcre
pcre2
wayland
wayland-protocols
wayland-scanner
Expand Down