diff options
author | Azat Bahawi <azat@bahawi.net> | 2023-11-19 21:58:34 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2023-11-19 21:58:34 +0300 |
commit | edf7cc355cb1f55a9301283ebec15e01dc4ffe62 (patch) | |
tree | bf7745040efadac618168b7a9a764acb482acb07 /packages/emacsql-sqlite.nix | |
parent | 2023-11-16 (diff) |
2023-11-19
Diffstat (limited to '')
-rw-r--r-- | packages/emacsql-sqlite.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/packages/emacsql-sqlite.nix b/packages/emacsql-sqlite.nix new file mode 100644 index 0000000..3329e08 --- /dev/null +++ b/packages/emacsql-sqlite.nix @@ -0,0 +1,35 @@ +{ + fetchFromGitHub, + lib, + stdenv, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "emacsql-sqlite"; + version = "3.1.1"; + + src = fetchFromGitHub { + owner = "magit"; + repo = "emacsql"; + rev = finalAttrs.version; + hash = "sha256-b/QEpWMTyVOdkOEhPNJ0x8ukUy9Gc9gYGjnlh0WU9fY="; + }; + + 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"; + }; +}) |