Skip to content

Commit

Permalink
j4-dmenu-desktop: unstable-2023-09-12 -> 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamb committed Jun 11, 2024
1 parent 8f5f49d commit 38d31bc
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions pkgs/applications/misc/j4-dmenu-desktop/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{ lib, stdenv, fetchFromGitHub, cmake, dmenu }:
{ lib, stdenv, fetchFromGitHub, cmake, dmenu, fmt, spdlog }:

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

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

postPatch = ''
Expand All @@ -18,19 +18,24 @@ stdenv.mkDerivation (finalAttrs: {

nativeBuildInputs = [ cmake ];

# tests are fetching an external git repository
buildInputs = [
fmt
spdlog
];

# Disable unit tests and the fetching of external dependencies.
cmakeFlags = [
"-DWITH_TESTS=OFF"
"-DWITH_GIT_CATCH=OFF"
"-DNO_DOWNLOAD=ON"
];

meta = with lib; {
changelog = "https://github.com/enkore/j4-dmenu-desktop/blob/${finalAttrs.src.rev}/CHANGELOG";
changelog = "https://github.com/enkore/j4-dmenu-desktop/blob/${version}/CHANGELOG";
description = "Wrapper for dmenu that recognizes .desktop files";
homepage = "https://github.com/enkore/j4-dmenu-desktop";
license = licenses.gpl3Only;
mainProgram = "j4-dmenu-desktop";
maintainers = with maintainers; [ ericsagnes ];
platforms = platforms.unix;
};
})
}

0 comments on commit 38d31bc

Please sign in to comment.