wip: 2024.08.16 14:21:25
This commit is contained in:
parent
775b4ca6e7
commit
254f0536de
3 changed files with 15 additions and 12 deletions
|
@ -19,8 +19,9 @@
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
packages = forAllSystems (pkgs: rec {
|
packages = forAllSystems (pkgs: rec {
|
||||||
default = pkgs.callPackage ./meta.nix {inherit tunnel;};
|
utils = pkgs.callPackage ./meta.nix { inherit tunnel; };
|
||||||
tunnel = pkgs.callPackage ./tunnel-go { };
|
tunnel = pkgs.callPackage ./tunnel-go { };
|
||||||
|
default = utils;
|
||||||
});
|
});
|
||||||
devShells = forAllSystems (pkgs: {
|
devShells = forAllSystems (pkgs: {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
|
|
19
meta.nix
19
meta.nix
|
@ -1,20 +1,19 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
stdenvNoCC,
|
stdenvNoCC,
|
||||||
|
|
||||||
# packages
|
# packages
|
||||||
tunnel,
|
tunnel,
|
||||||
...
|
...
|
||||||
}:stdenvNoCC.mkDerivation (finalAttrs: {
|
}:
|
||||||
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
pname = "meta";
|
pname = "meta";
|
||||||
version = "unstable";
|
version = "unstable";
|
||||||
|
|
||||||
# src =
|
# src =
|
||||||
buildInputs = [
|
buildInputs = [ tunnel ];
|
||||||
tunnel
|
|
||||||
];
|
|
||||||
|
|
||||||
phases = [ "installPhase"];
|
phases = [ "installPhase" ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
|
|
|
@ -15,7 +15,10 @@ buildGoModule rec {
|
||||||
src = cleanSource ./.;
|
src = cleanSource ./.;
|
||||||
vendorHash = "sha256-PwZJMEVaPHqZs7bM+9XLxVA36GfV3EN6bja86hkfO90=";
|
vendorHash = "sha256-PwZJMEVaPHqZs7bM+9XLxVA36GfV3EN6bja86hkfO90=";
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
nativeBuildInputs = [
|
||||||
|
installShellFiles
|
||||||
|
makeWrapper
|
||||||
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
installShellCompletion --cmd ${pname} \
|
installShellCompletion --cmd ${pname} \
|
||||||
|
|
Loading…
Reference in a new issue