Files
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

36 lines
674 B
Nix

{
lib,
mkDerivation,
fetchFromGitHub,
standard-library,
}:
mkDerivation rec {
pname = "generics";
version = "1.0.1";
src = fetchFromGitHub {
owner = "flupe";
repo = "generics";
rev = "v${version}";
sha256 = "sha256-B1eT6F0Dp2zto50ulf+K/KYMlMp8Pgc/tO9qkcqn+O8=";
};
buildInputs = [
standard-library
];
# Agda expects a single .agda-lib file.
preBuild = ''
rm tests.agda-lib
'';
meta = {
description = "Library for datatype-generic programming in Agda";
homepage = src.meta.homepage;
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ turion ];
};
}