Skip to content

Commit

Permalink
wslu: 4.1.3 -> 4.1.4
Browse files Browse the repository at this point in the history
This includes removing one of the patch files, half of which is
unnecessary as the upstream package now installs the .desktop file in
the correct place, and half of which is replaced with a
substituteInPlace call.

(cherry picked from commit 337c0bd)
  • Loading branch information
me-and authored and github-actions[bot] committed Jan 14, 2025
1 parent 9c6b49a commit 9ff2440
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 44 deletions.
39 changes: 0 additions & 39 deletions pkgs/by-name/ws/wslu/fix-desktop-item.patch

This file was deleted.

9 changes: 4 additions & 5 deletions pkgs/by-name/ws/wslu/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,33 @@

stdenv.mkDerivation rec {
pname = "wslu";
version = "4.1.3";
version = "4.1.4";

src = fetchFromGitHub {
owner = "wslutilities";
repo = "wslu";
rev = "v${version}";
hash = "sha256-lyJk8nOADq+s7GkZXsd1T4ilrDzMRsoALOesG8NxYK8=";
hash = "sha256-ssiwYkQg2rOirC/ZZVq2bJm4Ggc364uRkoS2y365Eb0=";
};

nativeBuildInputs = [ copyDesktopItems ];

patches = [
./fallback-conf-nix-store.diff
./fix-desktop-item.patch
];

postPatch = ''
substituteInPlace src/wslu-header \
--subst-var out
substituteInPlace src/etc/wslview.desktop \
--replace-fail /usr/bin/wslview wslview
'';

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

desktopItems = [ "src/etc/wslview.desktop" ];

meta = with lib; {
description = "Collection of utilities for Windows Subsystem for Linux";
homepage = "https://github.com/wslutilities/wslu";
Expand Down

0 comments on commit 9ff2440

Please sign in to comment.