1
0
Fork 0

feat: flake

Signed-off-by: jolheiser <john.olheiser@gmail.com>
main
jolheiser 2023-12-21 15:57:30 -06:00
parent a6d42a1291
commit 578a6c9e16
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
3 changed files with 61 additions and 1 deletions

View File

@ -1,6 +1,6 @@
# nixpl # nixpl
A ver basic side-by-side nix repl. A very basic side-by-side nix repl.
## License ## License

26
flake.lock 100644
View File

@ -0,0 +1,26 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1703192751,
"narHash": "sha256-ZIQ84AWlIHRgZe5KDcaw303MBkGSMEVlFxMiqjMVkbI=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "30cd89625c46c801946da2c5d249dc5c0cb37da5",
"type": "github"
},
"original": {
"owner": "nixos",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

34
flake.nix 100644
View File

@ -0,0 +1,34 @@
{
description = "Nix side-by-side repl";
inputs.nixpkgs.url = "github:nixos/nixpkgs";
outputs = {
self,
nixpkgs,
}: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
packages.${system}.default = pkgs.buildGoModule {
pname = "nixpl";
version = "0.1.0";
src = ./.;
vendorHash = "sha256-uBp+x6UjVJUhzOnWngHPkkWUjGEVkYWfIrZhUVVkxPo=";
meta = with pkgs.lib; {
description = "Nix side-by-side repl";
homepage = "https://git.jojodev.com/jolheiser/nixpl";
maintainers = with maintainers; [jolheiser];
mainProgram = "nixpl";
};
};
devShells.${system}.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
go
gopls
alejandra
];
};
};
}