added flakes
This commit is contained in:
1 parent
17861c0011
commit
86306269da
3 files changed
+88
No files matched your search
@@ -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 ];
|
||||
};
|
||||
});
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user