added flakes

This commit is contained in:
didier committed 2024-07-26 11:49:32 -04:00
1 parent 17861c0011
commit 86306269da
3 files changed
+88

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
{
description = "Go Orange";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
default = pkgs.buildGoModule {
pname = "go-orange";
version = "0.0.1";
src = ./.;
vendorHash = null;
};
in {
packages = { default = default; };
devShell = pkgs.mkShell {
name = "Go-Orange";
buildInputs = with pkgs; [ go ];
};
});
}