gdu: refactor
This commit is contained in:
parent
3c6d8fdaaf
commit
e0a2f43c4b
1 changed files with 4 additions and 3 deletions
|
@ -13,7 +13,7 @@ buildGoModule rec {
|
|||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dundee";
|
||||
repo = pname;
|
||||
repo = "gdu";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-hQyvYLegGimYTRz0J/2tmaC6N4LfjB1ivWgN29DwNhA=";
|
||||
};
|
||||
|
@ -27,11 +27,12 @@ buildGoModule rec {
|
|||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/dundee/gdu/v${lib.versions.major version}/build.Version=${version}"
|
||||
"-X=github.com/dundee/gdu/v${lib.versions.major version}/build.Version=${version}"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace cmd/gdu/app/app_test.go --replace "development" "${version}"
|
||||
substituteInPlace cmd/gdu/app/app_test.go \
|
||||
--replace-fail "development" "${version}"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
|
|
Loading…
Reference in a new issue