nixpkgs/pkgs/by-name/ws/wslu/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
974 B
Nix
Raw Normal View History

2022-12-30 09:52:20 +00:00
{ lib
, stdenv
, fetchFromGitHub
2024-03-06 11:13:19 +00:00
, copyDesktopItems
2022-12-30 09:52:20 +00:00
}:
2021-05-19 17:35:57 +00:00
stdenv.mkDerivation rec {
pname = "wslu";
2024-03-11 02:46:33 +00:00
version = "4.1.2";
2021-05-19 17:35:57 +00:00
src = fetchFromGitHub {
owner = "wslutilities";
2024-03-06 10:59:38 +00:00
repo = "wslu";
2021-05-19 17:35:57 +00:00
rev = "v${version}";
2024-03-11 02:46:33 +00:00
hash = "sha256-rmNGKayg8Y872yICilveMpDFBLkDZ6Ox8rqtWrK2om8=";
2021-05-19 17:35:57 +00:00
};
2024-03-06 11:13:19 +00:00
nativeBuildInputs = [ copyDesktopItems ];
patches = [
./fallback-conf-nix-store.diff
2024-03-06 11:13:19 +00:00
./fix-desktop-item.patch
];
postPatch = ''
substituteInPlace src/wslu-header \
--subst-var out
'';
makeFlags = [
"DESTDIR=$(out)"
"PREFIX="
];
2021-05-19 17:35:57 +00:00
2024-03-06 11:13:19 +00:00
desktopItems = [ "src/etc/wslview.desktop" ];
2021-05-19 17:35:57 +00:00
meta = with lib; {
description = "A collection of utilities for Windows Subsystem for Linux";
2021-05-19 17:35:57 +00:00
homepage = "https://github.com/wslutilities/wslu";
2022-12-30 09:52:20 +00:00
changelog = "https://github.com/wslutilities/wslu/releases/tag/v${version}";
2021-05-19 17:35:57 +00:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ jamiemagee ];
platforms = platforms.linux;
};
}