mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-05 12:08:02 +03:00
Merge pull request #313918 from luftmensch-luftmensch/heptabase_1.32.13
heptabase: init at 1.35.3
This commit is contained in:
commit
5c2880b241
39
pkgs/by-name/he/heptabase/package.nix
Normal file
39
pkgs/by-name/he/heptabase/package.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{
|
||||
lib,
|
||||
appimageTools,
|
||||
fetchurl,
|
||||
}:
|
||||
let
|
||||
pname = "heptabase";
|
||||
version = "1.35.3";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/heptameta/project-meta/releases/download/v${version}/Heptabase-${version}.AppImage";
|
||||
hash = "sha256-2HEBQI+C/LKrIUb+6qNmm+xjvTOxS+vk5WTsOZKz3+s=";
|
||||
};
|
||||
|
||||
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
||||
in
|
||||
appimageTools.wrapType2 {
|
||||
inherit pname version src;
|
||||
|
||||
extraInstallCommands = ''
|
||||
install -Dm444 ${appimageContents}/project-meta.desktop -T $out/share/applications/heptabase.desktop
|
||||
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/0x0/apps/project-meta.png $out/share/icons/hicolor/512x512/apps/${pname}.png
|
||||
|
||||
substituteInPlace $out/share/applications/heptabase.desktop \
|
||||
--replace-fail 'Exec=AppRun --no-sandbox %U' 'Exec=heptabase %U' \
|
||||
--replace-fail 'Icon=project-meta' 'Icon=${pname}'
|
||||
|
||||
'';
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/heptameta/project-meta/releases/tag/v${version}";
|
||||
description = "A visual note-taking tool for learning complex topics";
|
||||
homepage = "https://heptabase.com/";
|
||||
license = lib.licenses.unfree;
|
||||
maintainers = with lib.maintainers; [ luftmensch-luftmensch ];
|
||||
mainProgram = "heptabase";
|
||||
platforms = [ "x86_64-linux" ];
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user