nixpkgs/pkgs/by-name/ma/markets/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

43 lines
1.1 KiB
Nix

{ lib, stdenv, fetchFromGitHub
, desktop-file-utils, glib, gtk3, meson, ninja, pkg-config, python3, vala
, wrapGAppsHook3
, glib-networking, gobject-introspection, json-glib, libgee, libhandy, libsoup
}:
stdenv.mkDerivation rec {
pname = "markets";
version = "0.5.4";
src = fetchFromGitHub {
owner = "bitstower";
repo = "markets";
rev = version;
sha256 = "sha256-/g/r/1i69PmPND40zIID3Nun0I4ZFT1EFoNf1qprBjI=";
};
nativeBuildInputs = [
desktop-file-utils glib gtk3 meson ninja pkg-config python3 vala
wrapGAppsHook3 gobject-introspection
];
buildInputs = [
glib glib-networking gtk3 json-glib libgee libhandy
libsoup
];
postPatch = ''
patchShebangs build-aux/meson/postinstall.py
'';
postInstall = ''
ln -s bitstower-markets $out/bin/markets
'';
meta = with lib; {
homepage = "https://github.com/bitstower/markets";
description = "Stock, currency and cryptocurrency tracker";
maintainers = with maintainers; [ qyliss ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}