mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
161c4dd2ae
This fixes running `wslvar USERNAME` after one of the recent update.
40 lines
831 B
Nix
40 lines
831 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wslu";
|
|
version = "4.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wslutilities";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-yhugh836BoSISbTu19ubLOrz5X31Opu5QtCR0DXrbWc=";
|
|
};
|
|
|
|
patches = [
|
|
./fallback-conf-nix-store.diff
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/wslu-header \
|
|
--subst-var out
|
|
'';
|
|
|
|
makeFlags = [
|
|
"DESTDIR=$(out)"
|
|
"PREFIX="
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A 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;
|
|
};
|
|
}
|