Compare commits
2 commits
0f8faadd80
...
3bf3391eb9
Author | SHA1 | Date | |
---|---|---|---|
3bf3391eb9 | |||
ffcba0d714 |
5 changed files with 64 additions and 0 deletions
|
@ -58,6 +58,7 @@ in {
|
||||||
krita.enable = true;
|
krita.enable = true;
|
||||||
ungoogled-chromium.enable = true;
|
ungoogled-chromium.enable = true;
|
||||||
libreoffice.enable = true;
|
libreoffice.enable = true;
|
||||||
|
mapillary-uploader.enable = true;
|
||||||
inkscape.enable = true;
|
inkscape.enable = true;
|
||||||
gimp.enable = true;
|
gimp.enable = true;
|
||||||
freecad.enable = true;
|
freecad.enable = true;
|
||||||
|
|
|
@ -22,5 +22,8 @@
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
codium-extensions = pkgs.callPackage ./codium-extensions {};
|
codium-extensions = pkgs.callPackage ./codium-extensions {};
|
||||||
})
|
})
|
||||||
|
(final: prev: {
|
||||||
|
mapillary-uploader = pkgs.callPackage ./mapillary-uploader.nix {};
|
||||||
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
42
modules/common-modules/pkgs/mapillary-uploader.nix
Normal file
42
modules/common-modules/pkgs/mapillary-uploader.nix
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
fetchurl,
|
||||||
|
appimageTools,
|
||||||
|
}: let
|
||||||
|
pname = "mapillary-uploader";
|
||||||
|
version = "4.7.2"; # Based on the application output
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://tools.mapillary.com/uploader/download/linux";
|
||||||
|
name = "mapillary-uploader.AppImage";
|
||||||
|
sha256 = "sha256-Oyx7AIdA/2mwBaq7UzXOoyq/z2SU2sViMN40sY2RCQw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
appimageContents = appimageTools.extractType2 {
|
||||||
|
inherit pname version src;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
appimageTools.wrapType2 {
|
||||||
|
inherit pname version src;
|
||||||
|
|
||||||
|
extraInstallCommands = ''
|
||||||
|
# Install desktop file
|
||||||
|
install -Dm644 ${appimageContents}/mapillary-desktop-uploader.desktop $out/share/applications/mapillary-uploader.desktop
|
||||||
|
|
||||||
|
# Install icon
|
||||||
|
install -Dm644 ${appimageContents}/usr/share/icons/hicolor/0x0/apps/mapillary-desktop-uploader.png $out/share/pixmaps/mapillary-uploader.png
|
||||||
|
|
||||||
|
# Fix desktop file paths
|
||||||
|
substituteInPlace $out/share/applications/mapillary-uploader.desktop \
|
||||||
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Mapillary Desktop Uploader - Upload street-level imagery to Mapillary";
|
||||||
|
homepage = "https://www.mapillary.com/";
|
||||||
|
license = licenses.unfree; # Mapillary's license terms
|
||||||
|
maintainers = [];
|
||||||
|
platforms = ["x86_64-linux"];
|
||||||
|
sourceProvenance = with sourceTypes; [binaryNativeCode];
|
||||||
|
};
|
||||||
|
}
|
|
@ -21,6 +21,7 @@
|
||||||
./vscode
|
./vscode
|
||||||
./ungoogled-chromium.nix
|
./ungoogled-chromium.nix
|
||||||
./libreoffice.nix
|
./libreoffice.nix
|
||||||
|
./mapillary-uploader.nix
|
||||||
./inkscape.nix
|
./inkscape.nix
|
||||||
./gimp.nix
|
./gimp.nix
|
||||||
./proxmark3.nix
|
./proxmark3.nix
|
||||||
|
|
17
modules/home-manager-modules/programs/mapillary-uploader.nix
Normal file
17
modules/home-manager-modules/programs/mapillary-uploader.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib; let
|
||||||
|
cfg = config.programs.mapillary-uploader;
|
||||||
|
in {
|
||||||
|
options.programs.mapillary-uploader = {
|
||||||
|
enable = mkEnableOption "Mapillary Desktop Uploader";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
home.packages = [pkgs.mapillary-uploader];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue