Skip to content

Commit

Permalink
feat(pkgs): bundle ebnfer
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnossiom committed Dec 23, 2024
1 parent f0a3b6c commit 42f059b
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
4 changes: 2 additions & 2 deletions home-manager/fragments/jujutsu.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ in
programs.jujutsu = {
enable = true;
package = if flags.onlyCached then pkgs.jujutsu else lpkgs.jujutsu;

settings = {
user = {
name = "Milo Moisson";
Expand All @@ -43,7 +43,7 @@ in
};

aliases = {
ui = ["util" "exec" "--" "lazyjj"];
ui = [ "util" "exec" "--" "lazyjj" ];
};
};
};
Expand Down
1 change: 1 addition & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ in
{
asak = pkgs.callPackage ./asak.nix { };
cura = pkgs.callPackage ./cura.nix { };
ebnfer = pkgs.callPackage ./ebnfer.nix { };
find-unicode = pkgs.callPackage ./find-unicode.nix { };
# lazyjj = pkgs.callPackage ./lazyjj.nix { };
names = pkgs.callPackage ./names.nix { };
Expand Down
29 changes: 29 additions & 0 deletions pkgs/ebnfer.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ lib

, fetchFromGitHub
, rustPlatform
}:

rustPlatform.buildRustPackage rec {
pname = "ebnfer";
version = "0.14.0";

src = fetchFromGitHub {
owner = "DanielHauge";
repo = pname;
# rev = "v${version}";
rev = "f1c3a506859f6b62e14b898f5b5e59781dfe3278";
hash = "sha256-CSe2HCToYW7ivH6jpJwqHKH/yZDZgW8el8FVCmq75cU=";
};

cargoHash = "sha256-URT4jTKkCkK7Mr94ll1DloSEcrbkUJk8HFxkTmePf/w=";

meta = with lib; {
description = "A language server for EBNF";
homepage = "https://github.com/DanielHauge/ebnfer";
# license = licenses.mit;
maintainers = [ "mrnossiom" ];
mainProgram = "ebnfer";
};
}

0 comments on commit 42f059b

Please sign in to comment.