From f2c9cb2bd8977c4cccd54bfce8482ad6d579207e Mon Sep 17 00:00:00 2001 From: kraem Date: Thu, 13 Jan 2022 23:07:48 +0100 Subject: [PATCH] rivercarro: init at 0.1.1 --- pkgs/applications/misc/rivercarro/default.nix | 51 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 53 insertions(+) create mode 100644 pkgs/applications/misc/rivercarro/default.nix diff --git a/pkgs/applications/misc/rivercarro/default.nix b/pkgs/applications/misc/rivercarro/default.nix new file mode 100644 index 000000000000..86ba7dbe137a --- /dev/null +++ b/pkgs/applications/misc/rivercarro/default.nix @@ -0,0 +1,51 @@ +{ lib +, stdenv +, fetchFromSourcehut +, zig +, river +, wayland +, pkg-config +, scdoc +}: + +stdenv.mkDerivation rec { + pname = "rivercarro"; + version = "0.1.1"; + + src = fetchFromSourcehut { + owner = "~novakane"; + repo = pname; + fetchSubmodules = true; + rev = "v${version}"; + sha256 = "0h1wvl6rlrpr67zl51x71hy7nwkfd5kfv5p2mql6w5fybxxyqnpm"; + }; + + nativeBuildInputs = [ + pkg-config + river + scdoc + wayland + zig + ]; + + dontConfigure = true; + + preBuild = '' + export HOME=$TMPDIR + ''; + + installPhase = '' + runHook preInstall + zig build -Drelease-safe -Dcpu=baseline -Dman-pages --prefix $out install + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://git.sr.ht/~novakane/rivercarro"; + description = "A layout generator for river Wayland compositor, fork of rivertile"; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ kraem ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5c6b077248a0..766bc718b3e7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3600,6 +3600,8 @@ with pkgs; zig = zig_0_8_1; }; + rivercarro = callPackage ../applications/misc/rivercarro { }; + rmapi = callPackage ../applications/misc/remarkable/rmapi { }; rmview = libsForQt5.callPackage ../applications/misc/remarkable/rmview { };