Compare commits
3 Commits
7ce42d6fd9
...
5636c83a08
Author | SHA1 | Date |
---|---|---|
Emery Hemingway | 5636c83a08 | |
Emery Hemingway | 0a801cfaea | |
Emery Hemingway | e65febdb5b |
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
To add to your local flake registry:
|
To add to your local flake registry:
|
||||||
```sh
|
```sh
|
||||||
nix registry add syndicate "git+https://git.sr.ht/~ehmry/syndicate-flake?ref=trunk"
|
nix registry add syndicate "git+https://git.syndicate-lang.org/ehmry/syndicate-flake.git?ref=trunk"
|
||||||
```
|
```
|
||||||
|
|
||||||
## NixOS service
|
## NixOS service
|
||||||
|
@ -12,7 +12,7 @@ To import the NixOS module:
|
||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
# /etc/nixos/flake.nix
|
# /etc/nixos/flake.nix
|
||||||
inputs.syndicate.url = "git+https://git.sr.ht/~ehmry/syndicate-flake";
|
inputs.syndicate.url = "git+https://git.syndicate-lang.org/ehmry/syndicate-flake.git?ref=trunk";
|
||||||
|
|
||||||
outputs = { self, nixpkgs, syndicate }: {
|
outputs = { self, nixpkgs, syndicate }: {
|
||||||
|
|
||||||
|
|
|
@ -17,11 +17,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1632386563,
|
"lastModified": 1632570486,
|
||||||
"narHash": "sha256-8X0nNHyIQYLpcxbE4WSO5+Q5u9/3vB5n00dKP5mRP2I=",
|
"narHash": "sha256-1CPYfW5dgquaizUwJPtCL+9xu1peHWixLN2DI62oJoQ=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "bc2ba06323f101f413abe38736c1330388272ffd",
|
"rev": "f05a99e116df08af551c7c49e7d4aa4020d43acd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, nimPackages, fetchgit }:
|
{ lib, nimPackages, fetchFromGitea }:
|
||||||
with nimPackages;
|
with nimPackages;
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -22,12 +22,23 @@ let
|
||||||
|
|
||||||
in buildNimPackage rec {
|
in buildNimPackage rec {
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
pname = "preserves";
|
pname = "preserves";
|
||||||
version = "1.0.0";
|
version = "2.0.0";
|
||||||
src = fetchgit {
|
src = fetchFromGitea {
|
||||||
url = "https://git.sr.ht/~ehmry/preserves-nim";
|
domain = "git.syndicate-lang.org";
|
||||||
|
owner = "ehmry";
|
||||||
|
repo = "preserves-nim";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "18702q7vmyf5kkgn9nqf96kcar5pqxisf03ybrqw3hfp95vxixn4";
|
sha256 = "sha256-DRncKqq9+2WR1V1EeTnAh7ObCUNqfz7hp8onrCi1mlA=";
|
||||||
};
|
};
|
||||||
buildInputs = [ compiler bigints npeg ];
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue