mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 11:22:58 +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.
51 lines
1.4 KiB
Nix
51 lines
1.4 KiB
Nix
{ appimageTools, fetchurl, lib, makeDesktopItem }:
|
|
|
|
let
|
|
pname = "tusk";
|
|
version = "0.23.0";
|
|
|
|
icon = fetchurl {
|
|
url = "https://raw.githubusercontent.com/klaussinani/tusk/v${version}/static/Icon.png";
|
|
sha256 = "1jqclyrjgg6hir45spg75plfmd8k9nrsrzw3plbcg43s5m1qzihb";
|
|
};
|
|
|
|
desktopItem = makeDesktopItem {
|
|
name = pname;
|
|
exec = pname;
|
|
icon = icon;
|
|
desktopName = pname;
|
|
genericName = "Evernote desktop app";
|
|
categories = [ "Application" ];
|
|
};
|
|
|
|
in appimageTools.wrapType2 rec {
|
|
inherit pname version;
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/klaussinani/tusk/releases/download/v${version}/${pname}-${version}-x86_64.AppImage";
|
|
sha256 = "02q7wsnhlyq8z74avflrm7805ny8fzlmsmz4bmafp4b4pghjh5ky";
|
|
};
|
|
|
|
|
|
profile = ''
|
|
export LC_ALL=C.UTF-8
|
|
'';
|
|
|
|
extraInstallCommands = ''
|
|
mkdir "$out/share"
|
|
ln -s "${desktopItem}/share/applications" "$out/share/"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Refined Evernote desktop app";
|
|
longDescription = ''
|
|
Tusk is an unofficial, featureful, open source, community-driven, free Evernote app used by people in more than 140 countries. Tusk is indicated by Evernote as an alternative client for Linux environments trusted by the open source community.
|
|
'';
|
|
homepage = "https://klaussinani.github.io/tusk/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ tbenst ];
|
|
platforms = [ "x86_64-linux" ];
|
|
mainProgram = "tusk";
|
|
};
|
|
}
|