depot/third_party/nixpkgs/pkgs/by-name/ni/nix-lib-nmt/package.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

32 lines
822 B
Nix

{ 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 ];
};
}