pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / by-name / ws / wslu / package.nix
blob3ef601b0e123c3d40da7db561dcc72e54d6476f1
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , copyDesktopItems
5 }:
7 stdenv.mkDerivation rec {
8   pname = "wslu";
9   version = "4.1.3";
11   src = fetchFromGitHub {
12     owner = "wslutilities";
13     repo = "wslu";
14     rev = "v${version}";
15     hash = "sha256-lyJk8nOADq+s7GkZXsd1T4ilrDzMRsoALOesG8NxYK8=";
16   };
18   nativeBuildInputs = [ copyDesktopItems ];
20   patches = [
21     ./fallback-conf-nix-store.diff
22     ./fix-desktop-item.patch
23   ];
25   postPatch = ''
26     substituteInPlace src/wslu-header \
27       --subst-var out
28   '';
30   makeFlags = [
31     "DESTDIR=$(out)"
32     "PREFIX="
33   ];
35   desktopItems = [ "src/etc/wslview.desktop" ];
37   meta = with lib; {
38     description = "Collection of utilities for Windows Subsystem for Linux";
39     homepage = "https://github.com/wslutilities/wslu";
40     changelog = "https://github.com/wslutilities/wslu/releases/tag/v${version}";
41     license = licenses.gpl3Plus;
42     maintainers = with maintainers; [ jamiemagee ];
43     platforms = platforms.linux;
44   };