~dblsaiko/nix-extras

95c02c72e9f8a6b4b21452d19763f68ece4476c5 — Marco Rebhan 3 months ago 9f6228f
Drop SRM and Louvre as they're now in nixpkgs
3 files changed, 0 insertions(+), 144 deletions(-)

M packages/default.nix
D packages/louvre.nix
D packages/srm-cuarzo.nix
M packages/default.nix => packages/default.nix +0 -2
@@ 10,7 10,6 @@ in {
  hello-kde = callPackage ./hello-kde.nix {};
  kde-classic-svg = callPackage ./kde-classic-svg.nix {};
  ksysguard = callPackage ./ksysguard {};
  louvre = callPackage ./louvre.nix {};
  netmuxd = callPackage ./netmuxd {};
  nix-pijul = callPackage ./nix-pijul.nix {};
  nix-plugin-pijul = callPackage ./nix-plugin-pijul.nix {};


@@ 20,7 19,6 @@ in {
  pterodactyl-daemon = callPackage ./pterodactyl-daemon.nix {};
  pterodactyl-panel = callPackage ./pterodactyl-panel {};
  smarttab-kak = callPackage ./smarttab-kak.nix {};
  srm-cuarzo = callPackage ./srm-cuarzo.nix {};
  sys2x-tools = callPackage ./sys2x-tools {};
  the-elder-scrolls-online = callPackage ./the-elder-scrolls-online.nix {};
  win2unixpath = callPackage ./win2unixpath {};

D packages/louvre.nix => packages/louvre.nix +0 -79
@@ 1,79 0,0 @@
{
  lib,
  stdenv,
  fetchFromGitHub,
  meson,
  ninja,
  pkg-config,
  fontconfig,
  freeimage,
  icu,
  libdrm,
  libGL,
  libinput,
  libseat,
  libX11,
  libXcursor,
  libxkbcommon,
  mesa,
  pixman,
  srm-cuarzo,
  udev,
  wayland,
  xorgproto,
}:
stdenv.mkDerivation (self: {
  pname = "louvre";
  version = "1.0.1-1";
  rev = "v${self.version}";
  hash = "sha256-gKl9gGN2x7XGHxvRGUrZNZBsmpYh4as5fluUY26kkEo=";

  src = fetchFromGitHub {
    inherit (self) rev hash;
    owner = "CuarzoSoftware";
    repo = "Louvre";
  };

  nativeBuildInputs = [
    meson
    ninja
    pkg-config
  ];

  buildInputs = [
    fontconfig
    freeimage
    icu
    libdrm
    libGL
    libinput
    libseat
    libX11
    libXcursor
    libxkbcommon
    mesa
    pixman
    srm-cuarzo
    udev
    wayland
    xorgproto
  ];

  mesonFlags = [
    (lib.mesonOption "assets_path" "${placeholder "out"}/share/Louvre/assets")
    (lib.mesonOption "backends_path" "${placeholder "out"}/lib/Louvre/backends")
  ];

  outputs = ["dev" "out"];

  preConfigure = ''
    cd src
  '';

  meta = {
    description = "C++ library for building Wayland compositors";
    homepage = "https://github.com/CuarzoSoftware/Louvre";
    maintainers = [(import ../maintainer-info.nix)];
    platforms = lib.platforms.linux;
  };
})

D packages/srm-cuarzo.nix => packages/srm-cuarzo.nix +0 -63
@@ 1,63 0,0 @@
{
  lib,
  stdenv,
  fetchFromGitHub,
  meson,
  ninja,
  pkg-config,
  libdisplay-info,
  libdrm,
  libGL,
  libinput,
  libseat,
  mesa,
  udev,
}:
stdenv.mkDerivation (self: {
  pname = "srm-cuarzo";
  version = "0.4.0-1";
  rev = "v${self.version}";
  hash = "sha256-PWtDSBYw62sfyN2lpd7NY8SbqDrt5IN1rdLZRtDfals=";

  src = fetchFromGitHub {
    inherit (self) rev hash;
    owner = "CuarzoSoftware";
    repo = "SRM";
  };

  nativeBuildInputs = [
    meson
    ninja
    pkg-config
  ];

  buildInputs = [
    libdisplay-info
    libdrm
    libGL
    libinput
    libseat
    mesa
    udev
  ];

  outputs = ["dev" "out"];

  postPatch = ''
    sed \
      -e "s,/usr/include/drm,${libdrm.dev}/include/drm," \
      -e "s,/usr/include/libdrm,${libdrm.dev}/include/libdrm," \
      -i src/meson.build
  '';

  preConfigure = ''
    cd src
  '';

  meta = {
    description = "Simple Rendering Manager";
    homepage = "https://github.com/CuarzoSoftware/SRM";
    maintainers = [(import ../maintainer-info.nix)];
    platforms = lib.platforms.linux;
  };
})