Unverified Commit 2e34baa0 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

pshash: init at 0.1.14.6 (#371852)

parents ac83b6bf 68937e3e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -23783,6 +23783,12 @@
    githubId = 678511;
    name = "Thomas Mader";
  };
  thornoar = {
    email = "r.a.maksimovich@gmail.com";
    github = "thornoar";
    githubId = 84677666;
    name = "Roman Maksimovich";
  };
  thornycrackers = {
    email = "codyfh@gmail.com";
    github = "thornycrackers";
+41 −0
Original line number Diff line number Diff line
{
  haskellPackages,
  fetchFromGitHub,
  lib,
}:
haskellPackages.mkDerivation rec {
  pname = "pshash";
  version = "0.1.14.6";
  src = fetchFromGitHub {
    owner = "thornoar";
    repo = "pshash";
    tag = "v${version}";
    hash = "sha256-gqIdfIC8f9aF4ojHBhKOTvIr34kuTGQ5R/q1D+0c4bA=";
  };

  postPatch = ''
    patchShebangs --build test/output.sh
  '';

  isLibrary = false;
  isExecutable = true;
  doCheck = true;

  checkPhase = ''
    runHook preCheck
    test/output.sh dist/build/pshash/pshash
    runHook postCheck
  '';

  executableHaskellDepends = with haskellPackages; [
    base
    containers
    directory
  ];

  license = lib.licenses.mit;
  description = "Functional pseudo-hash password creation tool";
  homepage = "https://github.com/thornoar/pshash";
  maintainers = with lib.maintainers; [ thornoar ];
  mainProgram = "pshash";
}