summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorPeder Bergebakken Sundt <pbsds@hotmail.com>2023-11-18 19:14:23 +0100
committerGitHub <noreply@github.com>2023-11-18 19:14:23 +0100
commit91548f31239d65424f64b6753a3d1cc0830445b6 (patch)
tree07dd9a81eb4af420d64afe78822f99b02ba312a6 /pkgs/by-name
parent65dd1cd5a8216b3324a7672581635fba8403ce05 (diff)
parent65134c4b7fa4f4a694bbb07a4ed5197597b63285 (diff)
downloadnixpkgs-91548f31239d65424f64b6753a3d1cc0830445b6.tar
nixpkgs-91548f31239d65424f64b6753a3d1cc0830445b6.tar.gz
nixpkgs-91548f31239d65424f64b6753a3d1cc0830445b6.tar.bz2
nixpkgs-91548f31239d65424f64b6753a3d1cc0830445b6.tar.lz
nixpkgs-91548f31239d65424f64b6753a3d1cc0830445b6.tar.xz
nixpkgs-91548f31239d65424f64b6753a3d1cc0830445b6.tar.zst
nixpkgs-91548f31239d65424f64b6753a3d1cc0830445b6.zip
Merge pull request #262336 from h7x4/init-devdash
devdash: init at 0.5.0
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/de/devdash/package.nix52
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/by-name/de/devdash/package.nix b/pkgs/by-name/de/devdash/package.nix
new file mode 100644
index 00000000000..210a016277f
--- /dev/null
+++ b/pkgs/by-name/de/devdash/package.nix
@@ -0,0 +1,52 @@
+{
+  lib
+, buildGoModule
+, fetchFromGitHub
+, nix-update-script
+, coreutils
+}:
+
+buildGoModule rec {
+  pname = "devdash";
+  version = "0.5.0";
+
+  src = fetchFromGitHub {
+    owner = "Phantas0s";
+    repo = "devdash";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-RUPpgMVl9Cm8uhztdfKnuQ6KdMn9m9PewlT59NnTSiY=";
+  };
+
+  vendorHash = "sha256-xuc8rAkyCInNFxs5itwabqBe4CPg/sAuhcTJsapx7Q8=";
+
+  ldflags = [
+    "-s -w"
+    "-X github.com/Phantas0s/devdash/cmd.current=${version}"
+    "-X github.com/Phantas0s/devdash/cmd.buildDate=1970-01-01-00:00:01"
+  ];
+
+  patchPhase = ''
+    runHook prePatch
+
+    shopt -s globstar
+    substituteInPlace **/*.go --replace '"/bin/' '"/usr/bin/env '
+    shopt -u globstar
+
+    runHook postPatch
+  '';
+
+  runtimeDependencies = [
+    coreutils
+  ];
+
+  passthru.updateScript = nix-update-script { };
+
+  meta = {
+    description = "Highly configurable terminal dashboard for developers and creators";
+    homepage = "https://github.com/Phantas0s/devdash";
+    changelog = "https://github.com/Phantas0s/devdash/blob/v${version}/CHANGELOG.md";
+    maintainers = with lib.maintainers; [ h7x4 ];
+    license = lib.licenses.asl20;
+    mainProgram = "devdash";
+  };
+}