commit
b6dee42b6e
@ -9,16 +9,16 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "gdu";
|
||||
version = "5.26.0";
|
||||
version = "5.27.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dundee";
|
||||
repo = pname;
|
||||
repo = "gdu";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-bbSpU6l5rhBo7jp7E66/ti4r9GJjXtaaDY5GKYGtLYM=";
|
||||
hash = "sha256-hQyvYLegGimYTRz0J/2tmaC6N4LfjB1ivWgN29DwNhA=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-X1xuQiFSCPH10OK5bPcRN5fqMLxyi6y2mJGE9RQ1aJg=";
|
||||
vendorHash = "sha256-weNcJjofI7Aoy0Eya0KprXHAn7aTA0rQJYrJ4+t65hI=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
@ -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 New Issue
Block a user