preserves-nim: 0.3.0 -> 0.3.1

This commit is contained in:
Emery Hemingway 2022-05-18 14:27:22 -05:00
parent 50876967b1
commit 379840bea9
1 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ lib, buildNimPackage, fetchFromGitea, fetchFromGitHub }:
{ lib, stdenv, buildNimPackage, fetchFromGitea, fetchFromGitHub, preserves }:
let
compiler = fetchFromGitHub {
@ -17,16 +17,19 @@ let
in buildNimPackage rec {
pname = "preserves";
version = "3.3.0";
version = "3.3.1";
src = fetchFromGitea {
domain = "git.syndicate-lang.org";
owner = "ehmry";
repo = "${pname}-nim";
rev = "nim-${pname}-${version}";
sha256 = "sha256-bKALG3Gfq6Pezu9KH6LPc4L57iapILkClbEJVmlQsBY=";
sha256 = "sha256-xliHep/00EYWK9Y7bxhW6I/at3pbSJX7BCtngVo9UtY=";
};
propagatedBuildInputs = [ compiler npeg ];
propagatedNativeBuildInputs =
lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) preserves;
# propagate the utilities of this package for this build platform
preConfigure = "substituteInPlace preserves.nimble --replace '# bin ' 'bin '";
postInstall = ''