Files
nixpkgs/pkgs/by-name/gh/ghi/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
880 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
makeWrapper,
bundlerEnv,
tree,
}:
let
version = "1.2.1";
src = fetchFromGitHub {
owner = "drazisil";
repo = "ghi";
tag = version;
hash = "sha256-3V1lxI4VhP0jC3VSWyNS327gOCKowbbLB6ae1idpFFI=";
};
rubyEnv = bundlerEnv {
name = "ghi";
gemfile = "${src}/Gemfile";
lockfile = "${src}/Gemfile.lock";
gemset = ./gemset.nix;
};
in
stdenv.mkDerivation (finalAttrs: {
pname = "ghi";
inherit version src;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ rubyEnv.wrappedRuby ];
installPhase = ''
mkdir -p $out/bin
cp ghi $out/bin
'';
meta = {
description = "GitHub Issues on the command line";
mainProgram = "ghi";
homepage = "https://github.com/drazisil/ghi";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sigmanificient ];
};
})