diff options
author | luftmensch-luftmensch <valentinobocchetti59@gmail.com> | 2024-05-17 15:59:42 +0200 |
---|---|---|
committer | luftmensch-luftmensch <valentinobocchetti59@gmail.com> | 2024-05-22 00:15:50 +0200 |
commit | 31c78cbfe6e22864ce1edf47b398ce5b92989c6a (patch) | |
tree | 4a7af307cadb3bc26eb0ed2f8f285daa355f22c7 /pkgs/applications/graphics | |
parent | b0ac16cd2eb96cacaa554594675f0af23515a06a (diff) |
imgbrd-grabber: 7.10.0 -> 7.12.2
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r-- | pkgs/applications/graphics/imgbrd-grabber/default.nix | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/pkgs/applications/graphics/imgbrd-grabber/default.nix b/pkgs/applications/graphics/imgbrd-grabber/default.nix deleted file mode 100644 index 72d9d9cc1e01b..0000000000000 --- a/pkgs/applications/graphics/imgbrd-grabber/default.nix +++ /dev/null @@ -1,100 +0,0 @@ -{ lib -, stdenv -, cmake -, fetchFromGitHub -, wrapQtAppsHook -, qtmultimedia -, qttools -, qtdeclarative -, qtnetworkauth -, qtbase -, makeWrapper -, catch2 -, nodejs -, libpulseaudio -, openssl -, rsync -, typescript -}: - -stdenv.mkDerivation rec { - pname = "imgbrd-grabber"; - version = "7.10.0"; - - src = fetchFromGitHub { - owner = "Bionus"; - repo = "imgbrd-grabber"; - rev = "v${version}"; - sha256 = "sha256-AT6pN2do0LlH6xAXKcFQv+oderD88/EiG1JnCw6kOOg="; - fetchSubmodules = true; - }; - - buildInputs = [ - openssl - libpulseaudio - typescript - ]; - - nativeBuildInputs = [ - makeWrapper - qtmultimedia - qtbase - qtdeclarative - qttools - qtnetworkauth - nodejs - cmake - wrapQtAppsHook - ]; - - extraOutputsToLink = [ "doc" ]; - - postPatch = '' - # the package.sh script provides some install helpers - # using this might make it easier to maintain/less likely for the - # install phase to fail across version bumps - patchShebangs ./scripts/package.sh - - # ensure the script uses the rsync package from nixpkgs - substituteInPlace ../scripts/package.sh --replace "rsync" "${rsync}/bin/rsync" - - - # the npm build step only runs typescript - # run this step directly so it doesn't try and fail to download the unnecessary node_modules, etc. - substituteInPlace ./sites/CMakeLists.txt --replace "npm install" "npm run build" - - # remove the vendored catch2 - rm -rf tests/src/vendor/catch - - # link the catch2 sources from nixpkgs - ln -sf ${catch2.src} tests/src/vendor/catch - ''; - - preBuild = '' - export HOME=$TMPDIR - ''; - - postInstall = '' - # move the binaries to the share/Grabber folder so - # some relative links can be resolved (e.g. settings.ini) - mv $out/bin/* $out/share/Grabber/ - - cd ../.. - # run the package.sh with $out/share/Grabber as the $APP_DIR - sh ./scripts/package.sh $out/share/Grabber - - # add symlinks for the binaries to $out/bin - ln -s $out/share/Grabber/Grabber $out/bin/Grabber - ln -s $out/share/Grabber/Grabber-cli $out/bin/Grabber-cli - ''; - - sourceRoot = "${src.name}/src"; - - meta = with lib; { - description = "Very customizable imageboard/booru downloader with powerful filenaming features"; - license = licenses.asl20; - homepage = "https://bionus.github.io/imgbrd-grabber/"; - mainProgram = "Grabber"; - maintainers = [ maintainers.evanjs ]; - }; -} |