Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 860 B view raw
1{ 2 haskellPackages, 3 fetchFromGitHub, 4 lib, 5}: 6haskellPackages.mkDerivation rec { 7 pname = "pshash"; 8 version = "0.1.15.0"; 9 src = fetchFromGitHub { 10 owner = "thornoar"; 11 repo = "pshash"; 12 tag = "v${version}"; 13 hash = "sha256-i3jDt9ghA21OkkKjBk5a7Xok+ESskMPNA8WP+MUZxVk="; 14 }; 15 16 postPatch = '' 17 patchShebangs --build test/output.sh 18 ''; 19 20 isLibrary = false; 21 isExecutable = true; 22 doCheck = true; 23 24 checkPhase = '' 25 runHook preCheck 26 test/output.sh dist/build/pshash/pshash 27 runHook postCheck 28 ''; 29 30 executableHaskellDepends = with haskellPackages; [ 31 base 32 containers 33 directory 34 ]; 35 36 license = lib.licenses.mit; 37 description = "Functional pseudo-hash password creation tool"; 38 homepage = "https://github.com/thornoar/pshash"; 39 maintainers = with lib.maintainers; [ thornoar ]; 40 mainProgram = "pshash"; 41}