about summary refs log tree commit diff
path: root/pkgs/by-name/ni/nix-lib-nmt/package.nix
blob: bfe6085b30d1f8aa162113c3709f9bff04852009 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, stdenv, fetchurl }:

let version = "0.5.0";
in stdenv.mkDerivation {
  pname = "nix-lib-nmt";
  inherit version;

  # TODO: Restore when Sourcehut once its back from DDoS attack.
  # src = fetchFromSourcehut {
  #   owner = "~rycee";
  #   repo = "nmt";
  #   rev = "v${version}";
  #   hash = "sha256-1glxIg/b+8qr+ZsSsBqZIqGpsYWzRuMyz74/sy765Uk=";
  # };

  src = fetchurl {
    url = "https://rycee.net/tarballs/nmt-${version}.tar.gz";
    hash = "sha256-AO1iLsfZSLbR65tRBsAqJ98CewfSl5yNf7C6XaZj0wM=";
  };

  installPhase = ''
    mkdir -pv "$out"
    cp -rv * "$out"
  '';

  meta = {
    homepage = "https://git.sr.ht/~rycee/nmt";
    description = "A basic test framework for projects using the Nixpkgs module system";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ rycee ];
  };
}