mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
34 lines
702 B
Nix
34 lines
702 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "present";
|
|
version = "0.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "terror";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "+kCHe84ikdCLd7j5YwP2j3xz+XTzzo/kLy+b9YUFDnI=";
|
|
};
|
|
|
|
cargoSha256 = "VKY/FQUrFWtLxKoK6LP6qPMqNN4absZvnAbH9mha1fI=";
|
|
|
|
# required for tests
|
|
postPatch = ''
|
|
patchShebangs bin/get_version
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Script interpolation engine for markdown documents";
|
|
homepage = "https://github.com/terror/present/";
|
|
license = licenses.cc0;
|
|
maintainers = with maintainers; [ cameronfyfe ];
|
|
mainProgram = "present";
|
|
};
|
|
}
|