use an easier to set template
This commit is contained in:
parent
b8501165f0
commit
c842de8439
@ -5,9 +5,6 @@
|
|||||||
|
|
||||||
outputs = { self, nixpkgs }:
|
outputs = { self, nixpkgs }:
|
||||||
let
|
let
|
||||||
lastModifiedDate =
|
|
||||||
self.lastModifiedDate or self.lastModified or "19700101";
|
|
||||||
version = builtins.substring 0 8 lastModifiedDate;
|
|
||||||
supportedSystems =
|
supportedSystems =
|
||||||
[ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
|
[ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
|
||||||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||||
@ -18,7 +15,7 @@
|
|||||||
in {
|
in {
|
||||||
thing = pkgs.buildGoModule {
|
thing = pkgs.buildGoModule {
|
||||||
pname = "thing";
|
pname = "thing";
|
||||||
inherit version;
|
version = "v0.0.0";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
vendorSha256 = pkgs.lib.fakeSha256;
|
vendorSha256 = pkgs.lib.fakeSha256;
|
||||||
@ -33,6 +30,7 @@
|
|||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
PS1='\u@\h:\@; '
|
PS1='\u@\h:\@; '
|
||||||
|
echo "Go `${pkgs.go}/bin/go version`"
|
||||||
'';
|
'';
|
||||||
nativeBuildInputs = with pkgs; [ git go gopls go-tools ];
|
nativeBuildInputs = with pkgs; [ git go gopls go-tools ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user