nimble: 0.14.2 -> 0-unstable-2024-05-14
This commit is contained in:
parent
07c22ccf81
commit
e34fb3467b
26
pkgs/by-name/ni/nimble/lock.json
Normal file
26
pkgs/by-name/ni/nimble/lock.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"depends": [
|
||||
{
|
||||
"method": "fetchzip",
|
||||
"packages": [
|
||||
"checksums"
|
||||
],
|
||||
"path": "/nix/store/z6799507gzbw46lzbi1i8mwm0nbvrvnx-source",
|
||||
"rev": "7ff0b762332d2591bbeb65df9bb86d52ea44ec01",
|
||||
"sha256": "11612prr2wwbx414ip0zjh1fv638dgfvzxfd6v2f432n0wfwhjhj",
|
||||
"srcDir": "src",
|
||||
"url": "https://github.com/nim-lang/checksums/archive/7ff0b762332d2591bbeb65df9bb86d52ea44ec01.tar.gz"
|
||||
},
|
||||
{
|
||||
"method": "fetchzip",
|
||||
"packages": [
|
||||
"sat"
|
||||
],
|
||||
"path": "/nix/store/lwg9fm34h5xv0dvxij9r5m2y6pn1zsvx-source",
|
||||
"rev": "a53d9d6e0470f78f8ba14652d981e7bcdbcd579f",
|
||||
"sha256": "1dxbc41wbvkpdp6q3qz1r38lpn32447qkkgyh2s12ym6bx4ynni4",
|
||||
"srcDir": "src",
|
||||
"url": "https://github.com/nim-lang/sat/archive/a53d9d6e0470f78f8ba14652d981e7bcdbcd579f.tar.gz"
|
||||
}
|
||||
]
|
||||
}
|
@ -1,31 +1,43 @@
|
||||
{ lib, buildNimPackage, fetchFromGitHub, nim, makeWrapper }:
|
||||
{
|
||||
lib,
|
||||
buildNimPackage,
|
||||
fetchFromGitHub,
|
||||
nim,
|
||||
openssl,
|
||||
makeWrapper,
|
||||
}:
|
||||
|
||||
buildNimPackage (final: prev: {
|
||||
pname = "nimble";
|
||||
version = "0.14.2";
|
||||
buildNimPackage (
|
||||
final: prev: {
|
||||
pname = "nimble";
|
||||
version = "0-unstable-2024-05-14";
|
||||
|
||||
requiredNimVersion = 1;
|
||||
src = fetchFromGitHub {
|
||||
owner = "nim-lang";
|
||||
repo = "nimble";
|
||||
rev = "f8bd7b5fa6ea7a583b411b5959b06e6b5eb23667";
|
||||
hash = "sha256-aRDaucD6wOUPtXLIrahvK0vBfurdgFrk+swzqzMA09w=";
|
||||
};
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nim-lang";
|
||||
repo = "nimble";
|
||||
rev = "v${final.version}";
|
||||
hash = "sha256-8b5yKvEl7c7wA/8cpdaN2CSvawQJzuRce6mULj3z/mI=";
|
||||
};
|
||||
lockFile = ./lock.json;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
doCheck = false; # it works on their machine
|
||||
nimFlags = [ "--define:git_revision_override=${final.src.rev}" ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/nimble \
|
||||
--suffix PATH : ${lib.makeBinPath [ nim ]}
|
||||
'';
|
||||
doCheck = false; # it works on their machine
|
||||
|
||||
meta = {
|
||||
description = "Package manager for the Nim programming language";
|
||||
homepage = "https://github.com/nim-lang/nimble";
|
||||
license = lib.licenses.bsd3;
|
||||
mainProgram = "nimble";
|
||||
};
|
||||
})
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/nimble \
|
||||
--suffix PATH : ${lib.makeBinPath [ nim ]}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Package manager for the Nim programming language";
|
||||
homepage = "https://github.com/nim-lang/nimble";
|
||||
license = lib.licenses.bsd3;
|
||||
mainProgram = "nimble";
|
||||
};
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user