forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.nix
55 lines (49 loc) · 1.63 KB
/
package.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{ fetchFromGitHub, lib, python3Packages }: python3Packages.buildPythonApplication rec {
pname = "html2nix";
version = "0.0.1";
# Set python build type.
pyproject = true;
src = fetchFromGitHub {
owner = "ReedClanton";
repo = "${pname}";
rev = "v${version}";
hash = "sha256-J0qEBS2I/h1zwf790AvZG0Bqe44YIgc1tgiFm8U41nk=";
};
# Build time dependencies.
nativeBuildInputs = with python3Packages; [
setuptools
];
# Run time dependencies.
buildInputs = with python3Packages; [
# Using my fork.
(buildPythonPackage rec {
pname = "NetscapeBookmarksFileParser";
version = "1.2";
src = fetchFromGitHub {
owner = "ReedClanton";
repo = "Netscape-Bookmarks-File-Parser";
rev = "v${version}";
hash = "sha256-b4AFTHNMv0aMy25URe22cIAZvAL3pkP0oas//SMWCHY=";
};
})
];
# Un-comment once tests are written.
doCheck = false;
meta = with lib; {
changelog = "https://github.com/ReedClanton/html2nix/blob/${version}/CHANGELOG.md";
description = "Converts HTML files containing bookmarks to Nix syntax.";
longDescritpion = ''
Converts HTML files that contain bookmarks to Nix syntax. The HTML files are exported by
browsers and should follow the Netscape Bookmarks "standard". The resulting Nix syntax is
accepted by Home Manager via `programs.firefox.profiles.<profileName>.bookmarks`.
'';
homepage = "https://github.com/ReedClanton/html2nix";
license = licenses.mit;
mainProgram = "html2nix";
maintainers = with maintainers; [
ReedClanton
];
# Same as Home Manager.
platforms = platforms.unix;
};
}