Skip to content

Commit

Permalink
my-bookmarks-pl: init at 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kugland committed Mar 6, 2024
1 parent de9a4ac commit 00b707e
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

auditok = pkgs.callPackage ./pkgs/auditok {};
ffsubsync = pkgs.callPackage ./pkgs/ffsubsync {inherit auditok pysubs2;};
my-bookmarks-pl = pkgs.callPackage ./pkgs/my-bookmarks-pl {};
neocities-deploy = pkgs.callPackage ./pkgs/neocities-deploy {};
pysubs2 = pkgs.callPackage ./pkgs/pysubs2 {};
subtitlecomposer = pkgs.callPackage ./pkgs/subtitlecomposer {};
Expand Down
46 changes: 46 additions & 0 deletions pkgs/my-bookmarks-pl/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
pkgs,
lib,
stdenvNoCC,
fetchFromGitHub,
perlPackages,
makeWrapper,
}:
stdenvNoCC.mkDerivation rec {
pname = "my-bookmarks.pl";
version = "0.1.0";

src = fetchFromGitHub {
owner = "kugland";
repo = "my-bookmarks-pl";
rev = "v${version}";
hash = "sha256-RzSqoyd0vARxoaU7hcEgaycXMPbvlhOBrOuYpmNYKJk=";
};

propagatedBuildInputs = with pkgs; [
libnotify
perl
rofi
];

nativeBuildInputs = [makeWrapper];

installPhase = ''
runHook preInstall
install -m555 -Dt $out/bin my-bookmarks.pl
install -m444 -Dt $out/share/doc/${pname}-${version} README.md screenshot.png
runHook postInstall
'';

postFixup = ''
wrapProgram $out/bin/my-bookmarks.pl \
--prefix PERL5LIB : "${with perlPackages; makePerlPath [GetoptLong URI]}"
'';

meta = with lib; {
homepage = "https://codeberg.org/kugland/my-bookmarks.pl";
description = "Simple script to manage bookmarks in a text file and display them using rofi.";
license = licenses.mit;
platforms = platforms.all;
};
}

0 comments on commit 00b707e

Please sign in to comment.