mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
41 lines
907 B
Nix
41 lines
907 B
Nix
{ lib
|
|
, buildNimPackage
|
|
, fetchFromSourcehut
|
|
, nim
|
|
, nix-prefetch
|
|
, nix-prefetch-git
|
|
, openssl
|
|
, makeWrapper
|
|
}:
|
|
|
|
buildNimPackage (finalAttrs: {
|
|
pname = "nim_lk";
|
|
version = "20231031";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~ehmry";
|
|
repo = "nim_lk";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-dXm3dfXAxgucek19f1KdRShOsJyELPTB32qgGSKId6A=";
|
|
};
|
|
|
|
buildInputs = [ openssl ];
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
lockFile = ./lock.json;
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/nim_lk \
|
|
--suffix PATH : ${lib.makeBinPath [ nim nix-prefetch nix-prefetch-git ]}
|
|
'';
|
|
|
|
meta = finalAttrs.src.meta // {
|
|
description = "Generate Nix specific lock files for Nim packages";
|
|
homepage = "https://git.sr.ht/~ehmry/nim_lk";
|
|
mainProgram = "nim_lk";
|
|
license = lib.licenses.bsd3;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [ ehmry ];
|
|
};
|
|
})
|