mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 19:14:14 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
41 lines
973 B
Nix
41 lines
973 B
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, libffi
|
|
, llvm_13
|
|
, perl
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "dale";
|
|
version = "20220411";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tomhrr";
|
|
repo = "dale";
|
|
rev = "7386ef2d8912c60c6fb157a1e5cd772e15eaf658";
|
|
sha256 = "sha256-LNWqrFuEjtL7zuPTBfe4qQWr8IrT/ldQWSeDTK3Wqmo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config llvm_13.dev ];
|
|
buildInputs = [ libffi llvm_13 ];
|
|
|
|
nativeCheckInputs = [ perl ];
|
|
|
|
checkTarget = "tests";
|
|
|
|
meta = with lib; {
|
|
description = "Lisp-flavoured C";
|
|
longDescription = ''
|
|
Dale is a system (no GC) programming language that uses
|
|
S-expressions for syntax and supports syntactic macros.
|
|
'';
|
|
homepage = "https://github.com/tomhrr/dale";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ amiloradovsky ];
|
|
platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
|
|
# failed on Darwin: linker couldn't find the FFI lib
|
|
};
|
|
}
|