lol

haunt: adopt unmaintained package (#426709)

authored by

Aleksana and committed by
GitHub
f49df81d 7d416cb1

+13 -34
+13 -13
pkgs/by-name/ha/haunt/package.nix
··· 1 1 { 2 2 lib, 3 3 stdenv, 4 - fetchurl, 4 + fetchgit, 5 5 autoreconfHook, 6 - callPackage, 6 + texinfo, 7 7 guile, 8 8 guile-commonmark, 9 9 guile-reader, 10 - makeWrapper, 10 + makeBinaryWrapper, 11 11 pkg-config, 12 + gitUpdater, 12 13 }: 13 14 14 15 stdenv.mkDerivation (finalAttrs: { 15 16 pname = "haunt"; 16 17 version = "0.3.0"; 17 18 18 - src = fetchurl { 19 - url = "https://files.dthompson.us/haunt/haunt-${finalAttrs.version}.tar.gz"; 20 - hash = "sha256-mLq+0GvlSgZsPryUQQqR63zEg2fpTVKBMdO6JxSZmSs="; 19 + src = fetchgit { 20 + url = "https://git.dthompson.us/haunt.git"; 21 + tag = "v${finalAttrs.version}"; 22 + hash = "sha256-i6MI0eaRiA/JNgkIBJGLAsqMnyJz47aavyD6kOL7sqU="; 21 23 }; 22 24 23 25 nativeBuildInputs = [ 24 26 autoreconfHook 25 - makeWrapper 27 + makeBinaryWrapper 26 28 pkg-config 29 + texinfo 27 30 ]; 28 31 29 32 buildInputs = [ ··· 32 35 guile-reader 33 36 ]; 34 37 35 - # Test suite is non-deterministic in later versions 36 - doCheck = false; 38 + doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; 37 39 38 40 postInstall = '' 39 41 wrapProgram $out/bin/haunt \ ··· 42 44 ''; 43 45 44 46 passthru = { 45 - tests = { 46 - expectVersion = callPackage ./tests/001-test-version.nix { }; 47 - }; 47 + updateScript = gitUpdater { rev-prefix = "v"; }; 48 48 }; 49 49 50 50 meta = { ··· 68 68 to do things that aren't provided out-of-the-box. 69 69 ''; 70 70 license = lib.licenses.gpl3Plus; 71 - maintainers = with lib.maintainers; [ ]; 71 + maintainers = with lib.maintainers; [ normalcea ]; 72 72 inherit (guile.meta) platforms; 73 73 }; 74 74 })
-21
pkgs/by-name/ha/haunt/tests/001-test-version.nix
··· 1 - { 2 - stdenv, 3 - haunt, 4 - }: 5 - 6 - stdenv.mkDerivation { 7 - pname = "haunt-test-version"; 8 - inherit (haunt) version; 9 - 10 - nativeBuildInputs = [ haunt ]; 11 - 12 - dontInstall = true; 13 - 14 - buildCommand = '' 15 - haunt --version 16 - 17 - touch $out 18 - ''; 19 - 20 - meta.timeout = 10; 21 - }