mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
28 lines
739 B
Nix
28 lines
739 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "termdbms";
|
|
version = "unstable-2021-09-04";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mathaou";
|
|
repo = "termdbms";
|
|
rev = "d46e72c796e8aee0def71b8e3499b0ebe5ca3385";
|
|
hash = "sha256-+4y9JmLnu0xCJs1p1GNwqCx2xP6YvbIPb4zuClt8fbA=";
|
|
};
|
|
|
|
vendorHash = "sha256-RtgHus8k+6lvecG7+zABTo0go3kgoQj0S+3HaJHhKkE=";
|
|
|
|
patches = [ ./viewer.patch ];
|
|
|
|
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/mathaou/termdbms/";
|
|
description = "TUI for viewing and editing database files";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ izorkin ];
|
|
mainProgram = "sqlite3-viewer";
|
|
};
|
|
}
|