diff options
author | Michael Weiss <dev.primeos@gmail.com> | 2018-03-23 15:26:45 +0100 |
---|---|---|
committer | Michael Weiss <dev.primeos@gmail.com> | 2018-03-23 16:50:54 +0100 |
commit | d7af68589692d59ea6e0dab25faeb0e6180c42d3 (patch) | |
tree | 372e451ef0800c3645e4513abe2d895d4360e39f /pkgs/tools | |
parent | 4882ab1a87225295d388e93667d004e111336f90 (diff) |
lf: 2018-03-19 -> 1
The first non-nightly release (r1).
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/misc/lf/default.nix | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/pkgs/tools/misc/lf/default.nix b/pkgs/tools/misc/lf/default.nix index bed07bc84481d..0a7073f4d4894 100644 --- a/pkgs/tools/misc/lf/default.nix +++ b/pkgs/tools/misc/lf/default.nix @@ -1,19 +1,33 @@ { stdenv, buildGoPackage, fetchFromGitHub }: buildGoPackage rec { - name = "lf-unstable-${version}"; - version = "2018-03-19"; + name = "lf-${version}"; + version = "1"; src = fetchFromGitHub { owner = "gokcehan"; repo = "lf"; - rev = "c76ad181f5753984e39608628ac4def4183b53a4"; # nightly - sha256 = "1wsmljina9n2zij7gzh7b4zbzi7sdsa6hnyaj75nsmqn9lshngap"; + rev = "r${version}"; + sha256 = "0mq83m7mvavd0dzhk8g6ffldy57i22n0846yzqnlz733chiy3anz"; }; goPackagePath = "github.com/gokcehan/lf"; goDeps = ./deps.nix; + # TODO: Setting buildFlags probably isn't working properly. I've tried a few + # variants, e.g.: + # - buildFlags = "-ldflags \"-s -w -X 'main.gVersion=${version}'\""; + # - buildFlags = "-ldflags \\\"-X ${goPackagePath}/main.gVersion=${version}\\\""; + + # Override the build phase (to set buildFlags): + buildPhase = '' + runHook preBuild + runHook renameImports + cd go/src/${goPackagePath} + go install -ldflags="-s -w -X main.gVersion=${version}" + runHook postBuild + ''; + meta = with stdenv.lib; { description = "A terminal file manager written in Go and heavily inspired by ranger"; longDescription = '' |