lf: fix panic error on systems where user is not in /etc/passwd (#196614)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
1069eaec35
commit
1d3d61b344
@ -1,4 +1,9 @@
|
||||
{ buildGoModule, fetchFromGitHub, lib, installShellFiles }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "lf";
|
||||
@ -17,6 +22,10 @@ buildGoModule rec {
|
||||
|
||||
ldflags = [ "-s" "-w" "-X main.gVersion=r${version}" ];
|
||||
|
||||
# Force the use of the pure-go implementation of the os/user library.
|
||||
# Relevant issue: https://github.com/gokcehan/lf/issues/191
|
||||
tags = lib.optionals (!stdenv.isDarwin) [ "osusergo" ];
|
||||
|
||||
postInstall = ''
|
||||
install -D --mode=444 lf.desktop $out/share/applications/lf.desktop
|
||||
installManPage lf.1
|
||||
|
Loading…
Reference in New Issue
Block a user