Skip to content

Commit

Permalink
nix: fix hash
Browse files Browse the repository at this point in the history
Signed-off-by: lucasew <lucas59356@gmail.com>
  • Loading branch information
lucasew committed Apr 4, 2024
1 parent 2b10079 commit 112662d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.env
*.epub
*.mobi
result
15 changes: 1 addition & 14 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,2 @@
{pkgs ? import <nixpkgs> {}}:
pkgs.buildGoModule rec {
name = "p2k";
version = "0.0.1";
vendorSha256 = "0z5flbrii5dqylv5pap3svbm652jgqdsmnlzfa8nx86h3drk2fjn";
src = ./.;
buildInputs = with pkgs; [
calibre
];
meta = with pkgs.lib; {
description = "Pocket2Kindle: Fetch articles from pocket and send as ebook to kindle";
homepage = "https://github.com/lucasew/pocket2kindle";
platforms = platforms.linux;
};
}
pkgs.callPackage ./package.nix {}
23 changes: 23 additions & 0 deletions package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ buildGoModule
, calibre
, lib
}:

buildGoModule {
name = "p2k";
version = "0.0.1";

src = ./.;

vendorHash = "sha256-VjoxcxvQoG6Rcp/aqht+UhRT19bjqls29biVGPOirnw=";

buildInputs = [
calibre
];

meta = with lib; {
description = "Pocket2Kindle: Fetch articles from pocket and send as ebook to kindle";
homepage = "https://github.com/lucasew/pocket2kindle";
platforms = platforms.linux;
};
}

0 comments on commit 112662d

Please sign in to comment.