From 1c45651756a8c2619b8753075a2ec1656dfc6e1c Mon Sep 17 00:00:00 2001 From: figsoda Date: Tue, 13 Jun 2023 15:00:01 -0400 Subject: [PATCH] spacer: init at 0.1.1 https://github.com/samwho/spacer --- pkgs/tools/misc/spacer/default.nix | 26 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/tools/misc/spacer/default.nix diff --git a/pkgs/tools/misc/spacer/default.nix b/pkgs/tools/misc/spacer/default.nix new file mode 100644 index 000000000000..65b86234ef05 --- /dev/null +++ b/pkgs/tools/misc/spacer/default.nix @@ -0,0 +1,26 @@ +{ lib +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage rec { + pname = "spacer"; + version = "0.1.1"; + + src = fetchFromGitHub { + owner = "samwho"; + repo = "spacer"; + rev = "v${version}"; + hash = "sha256-3BPpyRbhrC/m2GnV0HH6DsZB3PqSL8AY6hzknFekpKE="; + }; + + cargoHash = "sha256-U9xKqPku4SxnAs9azQSDD3asHXGqp4HrdSzRZsExnT0="; + + meta = with lib; { + description = "CLI tool to insert spacers when command output stops"; + homepage = "https://github.com/samwho/spacer"; + changelog = "https://github.com/samwho/spacer/releases/tag/${src.rev}"; + license = licenses.mit; + maintainers = with maintainers; [ figsoda ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1e6233ca454b..99665eca7bab 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12619,6 +12619,8 @@ with pkgs; sozu = callPackage ../servers/sozu { }; + spacer = callPackage ../tools/misc/spacer { }; + sparrow-unwrapped = callPackage ../applications/blockchains/sparrow { openimajgrabber = callPackage ../applications/blockchains/sparrow/openimajgrabber.nix {}; openjdk = openjdk.override { enableJavaFX = true; };