Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixedit: init at 1.0.0 #348231

Closed
wants to merge 12 commits into from
25 changes: 7 additions & 18 deletions pkgs/tools/nix/nixedit/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
dialog,
}:

stdenv.mkDerivation {
stdenv.mkDerivation rec {
fndov marked this conversation as resolved.
Show resolved Hide resolved
pname = "nixedit";
version = "1.0.0";

src = fetchFromGitHub {
owner = "fndov";
repo = "nixedit";
rev = "75e7bab546c4946cd65079fdcad8bc2ab1550b8f";
hash = "sha256-KpqdyE6TqDHCj2zQZw2F66ZmSI93Oy6LxmPa+DXGB1A=";
rev = "d5fd24439917b0359529aee7d29da85f20608877";
hash = "sha256-Xp7hMDjPuQyBZ535RHq5fI2r9iIeD8uC5LhHB+CB5sA=";
};

nativeBuildInputs = [
Expand Down Expand Up @@ -50,18 +50,7 @@ stdenv.mkDerivation {

# Wrap nixedit to include the necessary dependencies in PATH
wrapProgram $out/bin/nixedit --prefix PATH : \
"${
lib.makeBinPath [
bash
coreutils
nix-tree
jq
micro
git
fzf
dialog
]
}"
"${lib.makeBinPath buildInputs}"
'';

doInstallCheck = true;
Expand All @@ -74,11 +63,11 @@ stdenv.mkDerivation {
$out/bin/nixedit --help > /dev/null
'';

meta = {
meta = with lib; {
homepage = "https://github.com/fndov/nixedit";
description = "A NixOS Multipurpose CLI/TUI Utility";
license = lib.licenses.gpl3;
license = licenses.gpl3;
mainProgram = "nixedit";
maintainers = with lib.maintainers; [ miyu ];
maintainers = [ maintainers.miyu ];
};
}