From 3961b69dbb4d7aab41c8ba193522c83f1baf2d2d Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Sat, 24 Aug 2019 02:38:45 -0700 Subject: [PATCH] package up the last stable git-plan and make it available --- nix/git-plan.nix | 11 +++++++++++ nix/home.nix | 17 ++++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 nix/git-plan.nix diff --git a/nix/git-plan.nix b/nix/git-plan.nix new file mode 100644 index 0000000..9406194 --- /dev/null +++ b/nix/git-plan.nix @@ -0,0 +1,11 @@ + [ + { + goPackagePath = "github.com/spf13/cobra"; + fetch = { + type = "git"; + url = "https://github.com/spf13/cobra"; + rev = "b80588d523ec50c7fee20218426cf2ff70920f06"; + sha256 = "0gl861bn6bb45ands4742xzaxdvl69r4an1v7cyfis7mc450j7lg"; + }; + } + ] diff --git a/nix/home.nix b/nix/home.nix index f508bb0..5091810 100644 --- a/nix/home.nix +++ b/nix/home.nix @@ -2,9 +2,24 @@ with lib; -{ +let + git-plan = pkgs.buildGoPackage rec { + name = "git-plan"; + version = "0"; + goPackagePath = "gitlab.com/haaksmash/git-plan"; + src = pkgs.fetchFromGitLab { + owner = "haaksmash"; + repo = "git-plan"; + rev = "7623e2e2a7ca5556e88691a9e5cef63eb8d42ede"; + sha256 = "0sqf2fcm73sswg9nk9k1zxxxy6np5c9mm6zf9iy1xrsq6p88ksp7"; + }; + + goDeps = ./git-plan.nix; + }; +in { home.packages = with pkgs; [ direnv + git-plan htop jq keybase