~ruther/nixos-config

84e14d4a255c987623322355af2236eb3501b523 — Frantisek Bohacek 11 months ago 525f6cd
feat: add dwlb, dwlmsg packages
3 files changed, 56 insertions(+), 0 deletions(-)

M flake.nix
A pkgs/dwlb.nix
A pkgs/dwlmsg.nix
M flake.nix => flake.nix +2 -0
@@ 57,6 57,8 @@
      packages.x86_64-linux = {
        mpris-ctl = pkgs.callPackage ./pkgs/rutherther/mpris-ctl.nix {};
        sequence-detector = pkgs.callPackage ./pkgs/rutherther/sequence-detector.nix {};
        dwlmsg = pkgs.callPackage ./pkgs/dwlmsg.nix {};
        dwlb = pkgs.callPackage ./pkgs/dwlb.nix {};
      };

      devShells.x86_64-linux.default = pkgs.mkShell {

A pkgs/dwlb.nix => pkgs/dwlb.nix +29 -0
@@ 0,0 1,29 @@
{ stdenv, pkg-config, wayland-scanner, wayland, wlroots, wayland-protocols, fcft, pixman, fetchFromGitHub }:

stdenv.mkDerivation {
  name = "dwlb";

  src = fetchFromGitHub {
    owner = "kolunmi";
    repo = "dwlb";
    rev = "a30bb0398a468f3f59438dd441165953e9d6c0dd";
    hash = "sha256-z1br5vL6tWT+hbGtLzMLzuGj6mRcaBgchHiXlk5qOZc=";
  };

  nativeBuildInputs = [
    pkg-config
    wayland-scanner
  ];

  buildInputs = [
    wayland
    wlroots
    wayland-protocols
    fcft
    pixman
  ];

  makeFlags = [
    "PREFIX=$(out)"
  ];
}

A pkgs/dwlmsg.nix => pkgs/dwlmsg.nix +25 -0
@@ 0,0 1,25 @@
{ stdenv, fetchgit, pkg-config, wayland-scanner, wayland, wlroots }:

stdenv.mkDerivation {
  name = "dwlmsg";

  src = fetchgit {
    url = "https://codeberg.org/notchoc/dwlmsg";
    rev = "72668a5e5f2098f20831d83aa27bc4c3b8e3189d";
    hash = "sha256-AKmxN8NOgJj0rOItT1P7Ss4oRS/HQ7qdVx9Rh9VtVp8=";
  };

  nativeBuildInputs = [
    pkg-config
    wayland-scanner
  ];

  buildInputs = [
    wayland
    wlroots
  ];

  makeFlags = [
    "PREFIX=$(out)"
  ];
}

Do not follow this link