home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit e6877066ce721dc1b448dd506f324b96c2c62f18
parent dd1da9fa4fe1b52054f20ce6fa720c0b69d9ccf5
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Mon, 27 May 2024 16:45:50 +0200

Revert "Use upstream gosmee package 😅"

This reverts commit dd1da9fa4fe1b52054f20ce6fa720c0b69d9ccf5.

Diffstat:
Mnix/packages/default.nix | 3+++
Anix/packages/gosmee/default.nix | 33+++++++++++++++++++++++++++++++++
Msystems/modules/services/gosmee.nix | 2+-
Musers/vincent/dev/go.nix | 2+-
4 files changed, 38 insertions(+), 2 deletions(-)

diff --git a/nix/packages/default.nix b/nix/packages/default.nix @@ -24,6 +24,9 @@ rec { #protobuild = pkgs.callPackage ./protobuild { }; rmapi = pkgs.callPackage ./rmapi { }; yaspell = pkgs.callPackage ./yaspell { }; + gosmee = pkgs.callPackage ./gosmee { + buildGoModule = pkgs.buildGo121Module; + }; operator-tool = pkgs.callPackage ./operator-tooling { }; diff --git a/nix/packages/gosmee/default.nix b/nix/packages/gosmee/default.nix @@ -0,0 +1,33 @@ +{ stdenv, lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + name = "gosmee-${version}"; + version = "0.14.0"; + rev = "${version}"; + + src = fetchFromGitHub { + inherit rev; + owner = "chmouel"; + repo = "gosmee"; + sha256 = "sha256-VKH0ajtLndTdW0dOY3XpixkTGy7Kvac7poFZVzj5HQU="; + }; + vendorHash = null; + + postUnpack = '' + printf ${version} > $sourceRoot/gosmee/templates/version + ''; + + postInstall = '' + # completions + mkdir -p $out/share/bash-completion/completions/ + $out/bin/gosmee completion bash > $out/share/bash-completion/completions/gosmee + mkdir -p $out/share/zsh/site-functions + $out/bin/gosmee completion zsh > $out/share/zsh/site-functions/_gosmee + ''; + + meta = { + description = "Command line server and client for webhooks deliveries (and https://smee.io)"; + homepage = "https://github.com/chmouel/gosmee"; + license = lib.licenses.asl20; + }; +} diff --git a/systems/modules/services/gosmee.nix b/systems/modules/services/gosmee.nix @@ -12,7 +12,7 @@ in ''; package = mkOption { type = types.package; - default = pkgs.gosmee; + default = pkgs.my.gosmee; description = '' gosmee package to use. ''; diff --git a/users/vincent/dev/go.nix b/users/vincent/dev/go.nix @@ -23,7 +23,7 @@ my.ram my.yaspell # not really go but still - gosmee + my.gosmee # cue deptree ];