preserves-nim: 2.0.0 -> 3.0.0
This commit is contained in:
parent
0ef8427cf5
commit
f79ea1c9f9
14
flake.lock
14
flake.lock
|
@ -17,16 +17,18 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1632570486,
|
"lastModified": 1636723036,
|
||||||
"narHash": "sha256-1CPYfW5dgquaizUwJPtCL+9xu1peHWixLN2DI62oJoQ=",
|
"narHash": "sha256-zFuu3TTj/NLq3NPJ8pprlmkOpjAoW3AWQNac3UFkCG8=",
|
||||||
"owner": "NixOS",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "f05a99e116df08af551c7c49e7d4aa4020d43acd",
|
"rev": "50a1ef0f59752623af884f5085e3d5e8bd806c77",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"id": "nixpkgs",
|
"owner": "nixos",
|
||||||
"type": "indirect"
|
"repo": "nixpkgs",
|
||||||
|
"rev": "50a1ef0f59752623af884f5085e3d5e8bd806c77",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
|
|
||||||
inputs.rust.url = "github:oxalica/rust-overlay";
|
inputs.rust.url = "github:oxalica/rust-overlay";
|
||||||
|
|
||||||
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/50a1ef0f59752623af884f5085e3d5e8bd806c77";
|
||||||
|
|
||||||
outputs = { self, nixpkgs, rust }:
|
outputs = { self, nixpkgs, rust }:
|
||||||
let
|
let
|
||||||
forEachSystem = nixpkgs.lib.genAttrs [ "aarch64-linux" "x86_64-linux" ];
|
forEachSystem = nixpkgs.lib.genAttrs [ "aarch64-linux" "x86_64-linux" ];
|
||||||
|
|
|
@ -1,38 +1,34 @@
|
||||||
{ lib, nimPackages, fetchFromGitea }:
|
{ lib, nimPackages, fetchFromGitea, fetchFromGitHub }:
|
||||||
with nimPackages;
|
with nimPackages;
|
||||||
|
|
||||||
let
|
let
|
||||||
bigints = fetchNimble {
|
compiler = fetchFromGitHub {
|
||||||
pname = "bigints";
|
owner = "nim-lang";
|
||||||
version = "0.5.0";
|
repo = "nim";
|
||||||
hash = "sha256-zMTXXC0lYVzXaKl8eC/SA/CymRgovgzxBdvEn1VE9p0=";
|
rev = "v1.6.0";
|
||||||
|
hash = "sha256-C9oveXIufv0HqMQw6eNmLbku4Sd7r28PKcRILvKYzn0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
compiler = fetchNimble {
|
npeg = fetchFromGitHub {
|
||||||
pname = "compiler";
|
owner = "zevv";
|
||||||
version = "1.4.8";
|
repo = "npeg";
|
||||||
hash = "sha256-OaSe9Bn/+rjVk4pJKjjwI9rpnDm/T7lRmKeh/DOPn38=";
|
rev = "0.25.0";
|
||||||
};
|
hash = "sha256-E/0hCz0XsoAb/bAksqrKTyi8/FwBdP8kT6uUUAdru68=";
|
||||||
|
|
||||||
npeg = fetchNimble {
|
|
||||||
pname = "npeg";
|
|
||||||
version = "0.24.1";
|
|
||||||
hash = "sha256-AKYDrR38345CQxV7kLvglGmkc/m8EX6TGtaFckJL3Dc=";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
in buildNimPackage rec {
|
in buildNimPackage rec {
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
pname = "preserves";
|
pname = "preserves";
|
||||||
version = "2.0.0";
|
version = "3.0.0";
|
||||||
src = fetchFromGitea {
|
src = fetchFromGitea {
|
||||||
domain = "git.syndicate-lang.org";
|
domain = "git.syndicate-lang.org";
|
||||||
owner = "ehmry";
|
owner = "ehmry";
|
||||||
repo = "preserves-nim";
|
repo = "preserves-nim";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-DRncKqq9+2WR1V1EeTnAh7ObCUNqfz7hp8onrCi1mlA=";
|
sha256 = "sha256-YcWJkDJIo1UcXyqQTv82ebDeT03f5LqnuIKVtkvBClA=";
|
||||||
};
|
};
|
||||||
buildInputs = [ compiler bigints npeg ];
|
buildInputs = [ compiler npeg ];
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
pushd $out/bin
|
pushd $out/bin
|
||||||
for link in preserves_decode preserves_from_json preserves_to_json;
|
for link in preserves_decode preserves_from_json preserves_to_json;
|
||||||
|
|
Loading…
Reference in New Issue