diff options
author | Emery Hemingway <ehmry@posteo.net> | 2024-05-27 16:31:14 +0300 |
---|---|---|
committer | Emery Hemingway <ehmry@posteo.net> | 2024-05-28 04:18:54 +0000 |
commit | e34fb3467bc3b91c2526c057b19f6ad8f0b418d5 (patch) | |
tree | d81c47723848253d4df12724423420e46d435420 /pkgs/by-name/ni | |
parent | 07c22ccf81596ff190683aab3095935e77b99eb9 (diff) |
nimble: 0.14.2 -> 0-unstable-2024-05-14
Diffstat (limited to 'pkgs/by-name/ni')
-rw-r--r-- | pkgs/by-name/ni/nimble/lock.json | 26 | ||||
-rw-r--r-- | pkgs/by-name/ni/nimble/package.nix | 60 |
2 files changed, 62 insertions, 24 deletions
diff --git a/pkgs/by-name/ni/nimble/lock.json b/pkgs/by-name/ni/nimble/lock.json new file mode 100644 index 0000000000000..5fe2cca79da16 --- /dev/null +++ b/pkgs/by-name/ni/nimble/lock.json @@ -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" + } + ] +} diff --git a/pkgs/by-name/ni/nimble/package.nix b/pkgs/by-name/ni/nimble/package.nix index 4e7457a88182b..213f621fd8667 100644 --- a/pkgs/by-name/ni/nimble/package.nix +++ b/pkgs/by-name/ni/nimble/package.nix @@ -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"; + }; + } +) |