@@ 3,11 3,11 @@
"easy-purescript-nix": {
"flake": false,
"locked": {
- "lastModified": 1651400038,
- "narHash": "sha256-bwbpXSTD8Hf7tlCXfZuLfo2QivvX1ZDJ1PijXXRTo3Q=",
+ "lastModified": 1652381155,
+ "narHash": "sha256-uKMxTUTfDBgoPfn3LomGI5H6CbmHu6Cq/3M16jHC5jc=",
"owner": "justinwoo",
"repo": "easy-purescript-nix",
- "rev": "0ad5775c1e80cdd952527db2da969982e39ff592",
+ "rev": "9a44ddfad868fe804e22973d32839c2f2167571c",
"type": "github"
},
"original": {
@@ 18,11 18,27 @@
},
"nixpkgs": {
"locked": {
- "lastModified": 1651558728,
- "narHash": "sha256-8HzyRnWlgZluUrVFNOfZAOlA1fghpOSezXvxhalGMUo=",
+ "lastModified": 1652659998,
+ "narHash": "sha256-FqNrXC1EE6U2RACwXBlsAvg1lqQGLYpuYb6+W3DL9vA=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "cbe587c735b734405f56803e267820ee1559e6c1",
+ "rev": "1d7db1b9e4cf1ee075a9f52e5c36f7b9f4207502",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "nixpkgs_2": {
+ "locked": {
+ "lastModified": 1652659998,
+ "narHash": "sha256-FqNrXC1EE6U2RACwXBlsAvg1lqQGLYpuYb6+W3DL9vA=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "1d7db1b9e4cf1ee075a9f52e5c36f7b9f4207502",
"type": "github"
},
"original": {
@@ 35,7 51,26 @@
"root": {
"inputs": {
"easy-purescript-nix": "easy-purescript-nix",
- "nixpkgs": "nixpkgs"
+ "nixpkgs": "nixpkgs",
+ "sourcehut-asciidoc-renderer": "sourcehut-asciidoc-renderer"
+ }
+ },
+ "sourcehut-asciidoc-renderer": {
+ "inputs": {
+ "nixpkgs": "nixpkgs_2"
+ },
+ "locked": {
+ "lastModified": 1652787163,
+ "narHash": "sha256-gdmwcS/WLpNp356tBPIReIEgtuPekxTTlyhjvQTm+Eg=",
+ "owner": "~toastal",
+ "repo": "sourcehut-asciidoc-renderer",
+ "rev": "ecff49881537ea5de9dce300f2ca96c6b1114a35",
+ "type": "sourcehut"
+ },
+ "original": {
+ "owner": "~toastal",
+ "repo": "sourcehut-asciidoc-renderer",
+ "type": "sourcehut"
}
}
},
@@ 7,9 7,16 @@
url = "github:justinwoo/easy-purescript-nix";
flake = false;
};
+ sourcehut-asciidoc-renderer.url = "sourcehut:~toastal/sourcehut-asciidoc-renderer";
};
- outputs = { self, nixpkgs, easy-purescript-nix, ... }@inputs:
+ outputs =
+ { self
+ , nixpkgs
+ , easy-purescript-nix
+ , sourcehut-asciidoc-renderer
+ , ...
+ }@inputs:
let
name = "purescript-web-network-information";
@@ 68,37 75,15 @@
'';
};
- "${name}-readme" = pkgs.stdenv.mkDerivation {
- name = "readme";
- description = "Render README";
- src = self;
- buildInputs = with pkgs; [
- asciidoctor
- python3Minimal
- ];
- unpackPhase = "true";
- preferLocalBuild = true;
- buildPhase = ''
- DOC_DIR="$out/share/doc"
- mkdir -p $DOC_DIR
- asciidoctor \
- --backend html5 \
- --embedded \
- --attribute nofooter \
- --attribute syntax-highlighter=pygments \
- --destination-dir=$DOC_DIR \
- $src/README.adoc
- sed -i "s/<td class=\"icon\"/<td/g" $DOC_DIR/README.html
- '';
- dontInstall = true;
+ "${name}-readme" = sourcehut-asciidoc-renderer.renderAsciiDoc {
+ inherit system;
+ sourceFile = ./README.adoc;
};
});
devShell = forAllSystems (system:
let
- pkgs = import nixpkgs {
- inherit system;
- };
+ pkgs = import nixpkgs { inherit system; };
easy-ps = nodeNormalizedEasyPurs { inherit pkgs; };
in
@@ 108,6 93,7 @@
buildInputs = (with pkgs; [
dhall
dhall-json
+ nixpkgs-fmt
nodePackages.bower
]) ++ (with easy-ps; [
nodejs