diff --git a/mods/nurPkgs/caps.nix b/mods/nurPkgs/caps.nix new file mode 100644 index 0000000..46f31d0 --- /dev/null +++ b/mods/nurPkgs/caps.nix @@ -0,0 +1,39 @@ +{ stdenv +, fetchFromGitHub +, ncurses +, autoreconfHook +, lib +}: + +stdenv.mkDerivation rec { + pname = "caps"; + version = "master"; + + src = fetchFromGitHub { + owner = "jhunt"; + repo = "caps"; + rev = "d0c499a351edd2c1fd9a59655d32789078c8eba1"; + sha256 = "sha256-qotSsgHTYSmAINuVA4phJCbOtOehR1CMLwGSPXyqTX8="; + }; + + installPhase = '' + mkdir -p $out/bin + cp ./caps $out/bin + ''; + + meta = with lib; { + description = "A small tool to parse linux capabilities"; + longDescription = '' + caps is a utility I wrote to make sense of the Linux Capability bitflags you get from the lovely /proc filesystem, which look like: sudo cat /proc/self/status | grep Cap + CapInh: 0000000000000000 + CapPrm: 0000003fffffffff + CapEff: 0000003fffffffff + CapBnd: 0000003fffffffff + CapAmb: 0000000000000000 + ''; + homepage = "https://github.com/jhunt/caps"; + license = licenses.mit; + #maintainers = [ ]; + platforms = platforms.all; + }; +} diff --git a/mods/nurPkgs/cbm.nix b/mods/nurPkgs/cbm.nix index 815a48c..9632878 100644 --- a/mods/nurPkgs/cbm.nix +++ b/mods/nurPkgs/cbm.nix @@ -12,8 +12,8 @@ stdenv.mkDerivation rec { src = fetchFromGitHub { owner = "resurrecting-open-source-projects"; repo = "cbm"; - rev = "b6bc84bd9702d711466348a7af5c25d4c4f0bbf5"; - sha256 = "sha256-rL9ttGK4CIPFHXmNBgVq1QzLkMDGtgF+1eoCH1bwvG0="; + rev = "eadfbba067ea2c239bd8513be7483c0485f1ba1a"; + sha256 = "sha256-h6q5LsN/GIoQ8Wl+0pyIC/zijHLgcrOdMg2/oayFEV8="; }; nativeBuildInputs = [ diff --git a/mods/nurPkgs/obsidian-to-hugo.nix b/mods/nurPkgs/obsidian-to-hugo.nix new file mode 100644 index 0000000..c06ad52 --- /dev/null +++ b/mods/nurPkgs/obsidian-to-hugo.nix @@ -0,0 +1,41 @@ +{ fetchFromGitHub +, python3Packages +, lib +, fetchpatch +}: + +python3Packages.buildPythonApplication rec { + pname = "obsidian-to-hugo"; + version = "master"; + + format = "pyproject"; + + src = fetchFromGitHub { + owner = "devidw"; + repo = "obsidian-to-hugo"; + rev = "60290a8174591a8f1b5b8b46acd47a72546f1972"; + sha256 = "sha256-pfTVoehltiWdfEnzwi6zPihW3yJJmwq5N42MV3G1Qw0="; + }; + + patches = [ + (fetchpatch { + url = "https://github.com/devidw/obsidian-to-hugo/pull/26.patch"; + sha256 = "sha256-ky4SdvIpbDEU1Wb+Gc95P9VT6BtvpmeEU82EIOm4ZXk="; + }) + ]; + + build-system = with python3Packages; [ + setuptools + ]; + + meta = with lib; { + description = "Process Obsidian notes to publish them with Hugo."; + longDescription = '' + Supports transformation of Obsidian wiki links into Hugo shortcodes for internal linking. + ''; + homepage = "https://github.com/devidw/obsidian-to-hugo"; + license = licenses.mit; + #maintainers = [ ]; + platforms = platforms.all; + }; +}