mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
46 lines
972 B
Nix
46 lines
972 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, copyDesktopItems
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wslu";
|
|
version = "4.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wslutilities";
|
|
repo = "wslu";
|
|
rev = "v${version}";
|
|
hash = "sha256-lyJk8nOADq+s7GkZXsd1T4ilrDzMRsoALOesG8NxYK8=";
|
|
};
|
|
|
|
nativeBuildInputs = [ copyDesktopItems ];
|
|
|
|
patches = [
|
|
./fallback-conf-nix-store.diff
|
|
./fix-desktop-item.patch
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/wslu-header \
|
|
--subst-var out
|
|
'';
|
|
|
|
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";
|
|
changelog = "https://github.com/wslutilities/wslu/releases/tag/v${version}";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ jamiemagee ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|