Unverified Commit 31edba2f authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

Merge pull request #316452 from Golo300/master

stash: init at 0.25.1
parents fe861139 cc5a80f5
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -7700,6 +7700,12 @@
      fingerprint = "0BAF 2D87 CB43 746F 6237  2D78 DE60 31AB A0BB 269A";
    }];
  };
  Golo300 = {
    email = "lanzingertm@gmail.com";
    github = "Golo300";
    githubId = 58785758;
    name = "Tim Lanzinger";
  };
  Gonzih = {
    email = "gonzih@gmail.com";
    github = "Gonzih";
+50 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchurl,
}:
let

  version = "0.25.1";

  sources = {
    x86_64-linux = {
      url = "https://github.com/stashapp/stash/releases/download/v${version}/stash-linux";
      hash = "sha256-Rb4x6iKx6T9NPuWWDbNaz+35XPzLqZzSm0psv+k2Gw4=";
    };
    aarch64-linux = {
      url = "https://github.com/stashapp/stash/releases/download/v${version}/stash-linux-arm64v8";
      hash = "sha256-6qPyIYKFkhmBNO47w9E91FSKlByepBOnl0MNJighGSc=";
    };
    x86_64-darwin = {
      url = "https://github.com/stashapp/stash/releases/download/v${version}/stash-macos";
      hash = "sha256-W8+rgqWUDTOB8ykGO2GL9tKEjaDXdx9LpFg0TAtJsxM=";
    };
  };
in
stdenv.mkDerivation (finalAttrs: {
  inherit version;

  pname = "stash";

  src = fetchurl { inherit (sources.${stdenv.system}) url hash; };

  dontUnpack = true;

  installPhase = ''
    runHook preInstall

    install -Dm755 $src $out/bin/stash

    runHook postInstall
  '';

  meta = with lib; {
    description = "Stash is a self-hosted porn app.";
    homepage = "https://github.com/stashapp/stash";
    license = licenses.agpl3Only;
    maintainers = with maintainers; [ Golo300 ];
    platforms = builtins.attrNames sources;
    mainProgram = "stash";
  };
})