blob: ad948bc7cd0a6e31489deeee11a3baa84c27ae99 (
plain) (
blame)
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
|
{
fetchFromGitHub,
lib,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "emacsql-sqlite";
version = "4.0.3";
src = fetchFromGitHub {
owner = "magit";
repo = "emacsql";
rev = "v${finalAttrs.version}";
hash = "sha256-MaL3t+2MhWOE6eLmt8m4ImpsKeNeUZ4S8zEoQVu51ZY=";
};
sourceRoot = "source/sqlite";
installPhase = ''
runHook preInstall
install -Dm755 -t $out/bin ${finalAttrs.meta.mainProgram}
runHook postInstall
'';
meta = with lib; {
description = "SQLite interop binary for emacsql-sqlite";
inherit (finalAttrs.src.meta) homepage;
license = licenses.unlicense;
platforms = platforms.unix;
maintainers = with maintainers; [ azahi ];
mainProgram = "emacsql-sqlite";
};
})
|