Skip to content

Commit

Permalink
ejson: 1.3.3 -> 1.5.2
Browse files Browse the repository at this point in the history
In 1.5.2, man pages were removed[1], so Ruby isn't required anymore.

[1]: Shopify/ejson#152
  • Loading branch information
joshheinrichs-shopify committed Sep 27, 2024
1 parent 8f91cf7 commit 6bd683f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 271 deletions.
4 changes: 0 additions & 4 deletions pkgs/development/tools/ejson/Gemfile

This file was deleted.

54 changes: 0 additions & 54 deletions pkgs/development/tools/ejson/Gemfile.lock

This file was deleted.

38 changes: 13 additions & 25 deletions pkgs/development/tools/ejson/default.nix
Original file line number Diff line number Diff line change
@@ -1,38 +1,26 @@
{ lib, bundlerEnv, ruby, buildGoModule, fetchFromGitHub }:
let
# needed for manpage generation
gems = bundlerEnv {
name = "ejson-gems";
gemdir = ./.;
inherit ruby;
};
in
{
lib,
buildGoModule,
fetchFromGitHub,
}:

buildGoModule rec {
pname = "ejson";
version = "1.3.3";
version = "1.5.2";

src = fetchFromGitHub {
owner = "Shopify";
repo = "ejson";
rev = "v${version}";
sha256 = "sha256-M2Gk+/l1tNlIAe1/fR1WLEOey+tjCUmMAujc76gmeZA=";
sha256 = "sha256-Pv0eoFf/E+PE/C+0wsSQxhVTlymOMAYk5UVQP2udpnA=";
};

vendorHash = "sha256-9+x7HrbXRoS/7ZADWwhsbynQLr3SyCbcsp9QnSubov0=";

nativeBuildInputs = [ gems ];

ldflags = [ "-s" "-w" ];

# set HOME, otherwise bundler will insert stuff in the manpages
postBuild = ''
HOME=$PWD make man SHELL=$SHELL
'';
vendorHash = "sha256-N2vcj3STkaZO2eRr8VztZTWOBUTI+wOri0HYDJ1KiN8=";

postInstall = ''
mkdir -p $out/share
cp -r build/man $out/share
'';
ldflags = [
"-s"
"-w"
];

meta = with lib; {
description = "Small library to manage encrypted secrets using asymmetric encryption";
Expand Down
188 changes: 0 additions & 188 deletions pkgs/development/tools/ejson/gemset.nix

This file was deleted.

0 comments on commit 6bd683f

Please sign in to comment.