blob: e5a3f604cca4b4e716d84c7e10ed9c18a65fd5c5 (
plain)
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
|
#!/usr/bin/env -S nix-build
{ pkgs ? import <nixpkgs> {} }:
with import ./nix/mkDub.nix { inherit pkgs; };
mkDubDerivation rec {
name = "spine-${version}";
version = "0.11.3";
src = ./.;
buildInputs = [
pkgs.sqlite
(
let
dub2nix-src = fetchTarball {
url = "https://github.com/lionello/dub2nix/archive/master.tar.gz";
};
dub2nix = (import dub2nix-src) { inherit pkgs; };
in
with pkgs; [
nixFlakes
rund
dub
ldc
sqlite
nix-prefetch-git
validatePkgConfig
jq
]
)
];
# buildPhase = [ ];
installPhase = ''
install -m755 -D spine $out/bin/spine
echo "built $out/bin/spine"
'';
meta = with pkgs.lib; {
homepage = http://sisudoc.org;
description = "a sisu like document parser";
license = licenses.agpl3Plus;
platforms = platforms.linux;
maintainers = [ RalphAmissah ];
};
}
|