Skip to content

Commit

Permalink
j4-dmenu-desktop: unstable-2023-09-12 -> 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamb committed Jan 10, 2025
1 parent 97568a3 commit eed2ee0
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions pkgs/by-name/j4/j4-dmenu-desktop/package.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,37 @@
{ lib, stdenv, fetchFromGitHub, cmake, dmenu }:
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, dmenu, fmt, spdlog }:

stdenv.mkDerivation (finalAttrs: {
pname = "j4-dmenu-desktop";
version = "unstable-2023-09-12";
version = "3.2";

src = fetchFromGitHub {
owner = "enkore";
repo = "j4-dmenu-desktop";
rev = "7e3fd045482a8ea70619e422975b52feabc75175";
hash = "sha256-8PmfzQkHlEdMbrcQO0bPruP3jaKEcr/17x0/Z7Jedh0=";
rev = "r${finalAttrs.version}";
hash = "sha256-Yrn6d2x9xOSV5FK0YP/mfD6BG9DeWlWobVafEzVYVJY=";
};

postPatch = ''
substituteInPlace src/main.cc \
--replace "dmenu -i" "${lib.getExe dmenu} -i"
'';

nativeBuildInputs = [ cmake ];
nativeBuildInputs = [
meson
ninja
pkg-config
];

buildInputs = [
fmt
spdlog
];

# tests are fetching an external git repository
cmakeFlags = [
"-DWITH_TESTS=OFF"
"-DWITH_GIT_CATCH=OFF"
mesonFlags = [
# Disable unit tests.
"-Denable-tests=false"
# Copy pre-generated shell completions.
"-Dgenerate-shell-completions=disabled"
];

meta = with lib; {
Expand Down

0 comments on commit eed2ee0

Please sign in to comment.