Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / by-name / de / devdash / package.nix
blob210a016277f69174376da5c3a4e09c8c3ff3bb77
2   lib
3 , buildGoModule
4 , fetchFromGitHub
5 , nix-update-script
6 , coreutils
7 }:
9 buildGoModule rec {
10   pname = "devdash";
11   version = "0.5.0";
13   src = fetchFromGitHub {
14     owner = "Phantas0s";
15     repo = "devdash";
16     rev = "refs/tags/v${version}";
17     hash = "sha256-RUPpgMVl9Cm8uhztdfKnuQ6KdMn9m9PewlT59NnTSiY=";
18   };
20   vendorHash = "sha256-xuc8rAkyCInNFxs5itwabqBe4CPg/sAuhcTJsapx7Q8=";
22   ldflags = [
23     "-s -w"
24     "-X github.com/Phantas0s/devdash/cmd.current=${version}"
25     "-X github.com/Phantas0s/devdash/cmd.buildDate=1970-01-01-00:00:01"
26   ];
28   patchPhase = ''
29     runHook prePatch
31     shopt -s globstar
32     substituteInPlace **/*.go --replace '"/bin/' '"/usr/bin/env '
33     shopt -u globstar
35     runHook postPatch
36   '';
38   runtimeDependencies = [
39     coreutils
40   ];
42   passthru.updateScript = nix-update-script { };
44   meta = {
45     description = "Highly configurable terminal dashboard for developers and creators";
46     homepage = "https://github.com/Phantas0s/devdash";
47     changelog = "https://github.com/Phantas0s/devdash/blob/v${version}/CHANGELOG.md";
48     maintainers = with lib.maintainers; [ h7x4 ];
49     license = lib.licenses.asl20;
50     mainProgram = "devdash";
51   };