Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b0081a26e5fb
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fce8b4837ae1
Choose a head ref
  • 9 commits
  • 3 files changed
  • 3 contributors

Commits on Sep 28, 2019

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a813173 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    887c174 View commit details
  3. Copy the full SHA
    ab42e39 View commit details
  4. Copy the full SHA
    165b47b View commit details
  5. Copy the full SHA
    0f132d0 View commit details

Commits on Oct 7, 2019

  1. Copy the full SHA
    c0570ed View commit details
  2. Update pkgs/shells/zsh/zsh-history/default.nix

    Co-Authored-By: worldofpeace <worldofpeace@protonmail.ch>
    kampka and worldofpeace authored Oct 7, 2019
    Copy the full SHA
    5ddfcc1 View commit details

Commits on Oct 15, 2019

  1. Copy the full SHA
    0bfefb0 View commit details

Commits on Oct 16, 2019

  1. Merge pull request #67670 from kampka/zsh-history

    zsh-history: init at unstable-2019-08-29
    worldofpeace authored Oct 16, 2019
    Copy the full SHA
    fce8b48 View commit details
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From efc16fbe7e41784f218d9c6cb4239b209cd77214 Mon Sep 17 00:00:00 2001
From: Christian Kampka <christian@kampka.net>
Date: Sat, 12 Oct 2019 21:47:47 +0200
Subject: [PATCH 1/2] Fix path marshalling when saveing config

---
config/config.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/config.go b/config/config.go
index 69a10c5..b5c61fe 100644
--- a/config/config.go
+++ b/config/config.go
@@ -26,7 +26,7 @@ func (p *Path) UnmarshalText(text []byte) error {
return nil
}

-func (p *Path) MarshalText() (text []byte, err error) {
+func (p Path) MarshalText() (text []byte, err error) {
return []byte(p.path), nil
}

--
2.19.2

36 changes: 36 additions & 0 deletions pkgs/shells/zsh/zsh-history/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ lib, fetchFromGitHub, buildGoModule, installShellFiles }:

buildGoModule rec {
pname = "zsh-history";
version = "2019-10-07";

src = fetchFromGitHub {
owner = "b4b4r07";
repo = "history";
rev = "a08ad2dcffc852903ae54b0c5704b8a085009ef7";
sha256 = "0r3p04my40dagsq1dssnk583qrlcps9f7ajp43z7mq73q3hrya5s";
};

patches = [
./0001-Fix-path-marshalling-when-saveing-config.patch
];

nativeBuildInputs = [ installShellFiles ];

modSha256 = "0f10b86gyn7m7lw43c8y1m30mdg0i092a319v3cb2qj05jb9vn42";
goPackagePath = "github.com/b4b4r07/history";

postInstall = ''
install -d $out/share
cp -r "$NIX_BUILD_TOP/source/misc/"* "$out/share"
installShellCompletion --zsh --name _history $out/share/zsh/completions/_history
'';

meta = with lib; {
description = "A CLI to provide enhanced history for your ZSH shell";
license = licenses.mit;
homepage = https://github.com/b4b4r07/history;
platforms = platforms.unix;
maintainers = with maintainers; [ kampka ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -7293,6 +7293,8 @@ in

zsh-git-prompt = callPackage ../shells/zsh/zsh-git-prompt { };

zsh-history = callPackage ../shells/zsh/zsh-history { };

zsh-history-substring-search = callPackage ../shells/zsh/zsh-history-substring-search { };

zsh-navigation-tools = callPackage ../tools/misc/zsh-navigation-tools { };