Compare commits

..

No commits in common. "5636c83a080ea64fc3d966b28719d5ff58ca53ec" and "7ce42d6fd912458a2ed811a11b0dd631d874e084" have entirely different histories.

3 changed files with 10 additions and 21 deletions

View File

@ -2,7 +2,7 @@
To add to your local flake registry:
```sh
nix registry add syndicate "git+https://git.syndicate-lang.org/ehmry/syndicate-flake.git?ref=trunk"
nix registry add syndicate "git+https://git.sr.ht/~ehmry/syndicate-flake?ref=trunk"
```
## NixOS service
@ -12,7 +12,7 @@ To import the NixOS module:
```nix
{
# /etc/nixos/flake.nix
inputs.syndicate.url = "git+https://git.syndicate-lang.org/ehmry/syndicate-flake.git?ref=trunk";
inputs.syndicate.url = "git+https://git.sr.ht/~ehmry/syndicate-flake";
outputs = { self, nixpkgs, syndicate }: {

View File

@ -17,11 +17,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1632570486,
"narHash": "sha256-1CPYfW5dgquaizUwJPtCL+9xu1peHWixLN2DI62oJoQ=",
"lastModified": 1632386563,
"narHash": "sha256-8X0nNHyIQYLpcxbE4WSO5+Q5u9/3vB5n00dKP5mRP2I=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f05a99e116df08af551c7c49e7d4aa4020d43acd",
"rev": "bc2ba06323f101f413abe38736c1330388272ffd",
"type": "github"
},
"original": {

View File

@ -1,4 +1,4 @@
{ lib, nimPackages, fetchFromGitea }:
{ lib, nimPackages, fetchgit }:
with nimPackages;
let
@ -22,23 +22,12 @@ let
in buildNimPackage rec {
outputs = [ "out" "dev" ];
pname = "preserves";
version = "2.0.0";
src = fetchFromGitea {
domain = "git.syndicate-lang.org";
owner = "ehmry";
repo = "preserves-nim";
version = "1.0.0";
src = fetchgit {
url = "https://git.sr.ht/~ehmry/preserves-nim";
rev = "v${version}";
sha256 = "sha256-DRncKqq9+2WR1V1EeTnAh7ObCUNqfz7hp8onrCi1mlA=";
sha256 = "18702q7vmyf5kkgn9nqf96kcar5pqxisf03ybrqw3hfp95vxixn4";
};
buildInputs = [ compiler bigints npeg ];
postInstall = ''
pushd $out/bin
for link in preserves_decode preserves_from_json preserves_to_json;
do ln -s preserves_encode $link
done
popd
'';
doCheck = true;
}