pureref 2, added pkg to load source file

This commit is contained in:
Danilo Reyes 2024-10-19 17:38:27 -06:00
parent 155ae98c72
commit 3f769d34a0
3 changed files with 15 additions and 26 deletions

View File

@ -17,16 +17,16 @@
mypaint # not the best art program mypaint # not the best art program
mypaint-brushes # but it's got some mypaint-brushes # but it's got some
mypaint-brushes1 # nice damn brushes mypaint-brushes1 # nice damn brushes
# pureref # create inspiration/reference boards
blender # cgi animation and sculpting blender # cgi animation and sculpting
# drawpile # arty party with friends!! # drawpile # arty party with friends!!
(callPackage ../../pkgs/pureref/default.nix { }) # create inspiration/reference boards
]) ])
++ ( ++ (
if config.my.dev.gameDev.enable then if config.my.dev.gameDev.enable then
with pkgs; with pkgs;
[ [
godot_4 # game development godot_4 # game development
# gdtoolkit # gdscript language server gdtoolkit_4 # gdscript language server
] ]
else else
[ ] [ ]

View File

@ -37,7 +37,7 @@ _self: super: {
]; ];
}; };
inherit (pkgsU) planify; inherit (pkgsU) planify;
inherit (pkgsU) gdtoolkit; inherit (pkgsU) gdtoolkit_4;
inherit (pkgsU) ns-usbloader; inherit (pkgsU) ns-usbloader;
inherit (pkgsU) collector; inherit (pkgsU) collector;
inherit (pkgsU) homepage-dashboard; inherit (pkgsU) homepage-dashboard;
@ -51,6 +51,7 @@ _self: super: {
inherit (pkgsU) prowlarr; inherit (pkgsU) prowlarr;
inherit (pkgsU) jellyfin; inherit (pkgsU) jellyfin;
inherit (pkgsU) jellyfin-ffmpeg; inherit (pkgsU) jellyfin-ffmpeg;
inherit (pkgsU) pureref;
inherit (pkgsM) gallery-dl; inherit (pkgsM) gallery-dl;
inherit (pkgsM) yt-dlp; inherit (pkgsM) yt-dlp;
handbrake = super.handbrake.override { useGtk = true; }; handbrake = super.handbrake.override { useGtk = true; };

View File

@ -1,37 +1,25 @@
{ {
lib, lib,
appimageTools, appimageTools,
runCommand, requireFile,
curl,
gnugrep,
cacert,
}: }:
appimageTools.wrapType1 rec { appimageTools.wrapType1 rec {
pname = "pureref"; pname = "pureref";
version = "2.0.0"; version = "2.0.3";
src = src = requireFile {
runCommand "PureRef-${version}_x64.Appimage" name = "PureRef-${version}_x64.Appimage";
{ sha256 = "d2247570fdac66f596a8ac11030aba2ff6e62014981caae523cbbc57684035f3";
nativeBuildInputs = [ url = "https://www.pureref.com/download.php";
curl };
gnugrep
cacert
];
outputHash = "sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=";
}
''
key="$(curl "https://www.pureref.com/download.php" --silent | grep '%3D%3D' | cut -d '"' -f2)"
curl "https://www.pureref.com/files/build.php?build=LINUX64.Appimage&version=${version}&downloadKey=$key" --output $out
'';
meta = { meta = with lib; {
description = "Reference Image Viewer"; description = "Reference Image Viewer";
homepage = "https://www.pureref.com"; homepage = "https://www.pureref.com";
license = lib.licenses.unfree; license = licenses.unfree;
maintainers = [ lib.maintainers.elnudev ]; maintainers = with maintainers; [ elnudev ];
platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" ];
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ]; sourceProvenance = [ sourceTypes.binaryNativeCode ];
}; };
} }