Compare commits
2 Commits
36394395c0
...
73235cf0ab
Author | SHA1 | Date |
---|---|---|
Bill Ewanick | 73235cf0ab | |
Bill Ewanick | 4d710afae3 |
|
@ -6,8 +6,9 @@
|
|||
dist
|
||||
generateSealPosts
|
||||
|
||||
# Direnv lorri stuff
|
||||
# Nix related
|
||||
.direnv
|
||||
result
|
||||
|
||||
# Too many posts, hiding for now
|
||||
posts
|
14
flake.lock
14
flake.lock
|
@ -2,16 +2,16 @@
|
|||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1681482634,
|
||||
"narHash": "sha256-cT/nr3L8khEYZSGp8qqwxFH+/q4/547MfyOdSj6MhBk=",
|
||||
"lastModified": 1690927903,
|
||||
"narHash": "sha256-D5gCaCROnjEKDOel//8TO/pOP87pAEtT0uT8X+0Bj/U=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "fda0d99c2cbbb5c89d8855d258cb0821bd9113ad",
|
||||
"rev": "bd836ac5e5a7358dea73cb74a013ca32864ccb86",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-22.11",
|
||||
"ref": "nixos-23.05",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
|
@ -42,11 +42,11 @@
|
|||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1681202837,
|
||||
"narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=",
|
||||
"lastModified": 1689068808,
|
||||
"narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "cfacdce06f30d2b68473a46042957675eebb3401",
|
||||
"rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
17
flake.nix
17
flake.nix
|
@ -2,7 +2,7 @@
|
|||
description = "A Nix flake for a blog-post generating script, written in Haskell, with a seal bent.";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
|
||||
utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
|
@ -18,18 +18,23 @@
|
|||
]);
|
||||
in
|
||||
{
|
||||
packages.default = pkgs.runCommand "generateSealPosts" { } ''
|
||||
echo Generating seal posts
|
||||
mkdir -p $out/bin
|
||||
${ghc'}/bin/ghc \
|
||||
-O2 \
|
||||
-static \
|
||||
-o $out/bin/generateSealPosts \
|
||||
${./generateSealPosts.hs}
|
||||
'';
|
||||
|
||||
devShells.default = pkgs.mkShell {
|
||||
name = "seal-generator-shell";
|
||||
|
||||
buildInputs = with pkgs.haskellPackages;
|
||||
[
|
||||
ghc'
|
||||
hlint
|
||||
haskell-language-server
|
||||
|
||||
(pkgs.writeShellScriptBin "build-seal-generator" ''
|
||||
${ghc'}/bin/ghc -outputdir dist -O2 -static generateSealPosts.hs
|
||||
'')
|
||||
];
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue