some nurpkgs updates

This commit is contained in:
Sebastian Moser
2025-05-28 08:24:47 +02:00
parent bc63aa7db8
commit bff8a49cc4
3 changed files with 82 additions and 2 deletions

39
mods/nurPkgs/caps.nix Normal file
View File

@@ -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;
};
}

View File

@@ -12,8 +12,8 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "resurrecting-open-source-projects"; owner = "resurrecting-open-source-projects";
repo = "cbm"; repo = "cbm";
rev = "b6bc84bd9702d711466348a7af5c25d4c4f0bbf5"; rev = "eadfbba067ea2c239bd8513be7483c0485f1ba1a";
sha256 = "sha256-rL9ttGK4CIPFHXmNBgVq1QzLkMDGtgF+1eoCH1bwvG0="; sha256 = "sha256-h6q5LsN/GIoQ8Wl+0pyIC/zijHLgcrOdMg2/oayFEV8=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@@ -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;
};
}