-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1d3e32
commit 4a665a4
Showing
5 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
/.direnv/ | ||
/result | ||
.idea | ||
.sandbox | ||
include/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ pkgs, self}: | ||
|
||
# pkgs.stdenv.mkDerivation { | ||
|
||
pkgs.buildGoModule { | ||
pname = "zcli"; | ||
version = "0..1"; | ||
|
||
src = self; #zcli; | ||
|
||
nativeBuildInputs = with pkgs; [ go ]; | ||
|
||
vendorHash = "sha256-XRnhK5vakEniRsgeEyBR+8RNwRO92KC9AXXMaYPs7Qc="; | ||
|
||
installPhase = '' | ||
mkdir -p $out/bin | ||
cp $GOPATH/bin/zcli $out/bin/ | ||
echo "Installed zcli to $out/bin/" | ||
ls -l $out/bin | ||
''; | ||
|
||
meta = with pkgs.lib; { | ||
description = "A command-line interface (CLI) tool built with Go"; | ||
homepage = "https://github.com/zeropsio/zcli"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ arbel-arad nermalcat69 ]; | ||
}; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
description = "Arbel's zcli flake"; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; | ||
}; | ||
|
||
outputs = { self, nixpkgs, ... }@inputs: | ||
let | ||
system = "x86_64-linux"; | ||
pkgs = nixpkgs.legacyPackages.${system}; | ||
in | ||
{ | ||
packages.${system}.default = (import ./default.nix { inherit pkgs self; }); | ||
|
||
devShells = pkgs.mkShell { | ||
nativeBuildInputs = [ pkgs.go ]; | ||
}; | ||
}; | ||
} |