Skip to content

Commit

Permalink
cgvg.rs: add package
Browse files Browse the repository at this point in the history
  • Loading branch information
adfaure committed Jun 21, 2024
1 parent 4867dd4 commit 5fe7b48
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
kcc = unstable.callPackage ./pkgs/kcc {};
organize = unstable.callPackage ./pkgs/organize {inherit simplematch ExifRead;};
obsidian-nvim = pkgs.callPackage ./pkgs/obsidian-nvim {};
cgvg-rs = pkgs.callPackage ./pkgs/rgvg {};
nix = unstable.nix;
};

Expand All @@ -67,8 +68,6 @@
};
extraSpecialArgs = {
inherit my-dotfiles home-module unstable;
# nixpkgs = nixos-unstable;
cgvg = self.packages.${system}.cgvg;
};
in {
# Include programs that need X or wayland
Expand Down Expand Up @@ -109,6 +108,7 @@
organize = self.packages.${system}.organize;
nixFlakes = self.packages.${system}.nix;
obsidian-nvim = self.packages.${system}.obsidian-nvim;
cgvg-rs = self.packages.${system}.cgvg-rs;
};

nixosModules.overlay = {pkgs, ...}: {
Expand Down
2 changes: 1 addition & 1 deletion homes/graphical.nix
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
obsidian

# loaded from this flake default overlay
pkgs.cgvg
pkgs.cgvg-rs

# # Using this for the moment ... https://github.com/NixOS/nixpkgs/issues/273611
# (lib.throwIf (lib.versionOlder "1.4.16" pkgs.obsidian.version) "Obsidian no longer requires EOL Electron" (
Expand Down
29 changes: 29 additions & 0 deletions pkgs/rgvg/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
pkgs,
stdenv,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "cgvg.rs";
version = "0.0.1";

src = fetchFromGitHub {
owner = "adfaure";
repo = "${pname}";
rev = "refs/heads/main";
sha256 = "sha256-8rQkUGtRJ2EvAcR1KxttTjmf2UMQTpfhhyt7LHT5tRA=";
};

cargoSha256 = "sha256-Y5HREuHh6Q99kWK2cgzL+2q8dJEIe2HSC++F1+lFx6I=";

meta = with pkgs.lib; {
description = "Commandline tools for searching and browsing sourcecode";
longDescription = ''
'';
homepage = "http://uzix.org/cgvg.html";
license = licenses.gpl2;
platforms = platforms.all;
broken = false;
};
}

0 comments on commit 5fe7b48

Please sign in to comment.