wip: 2024.08.16 14:21:25

This commit is contained in:
Daylin Morgan 2024-08-16 14:21:25 -05:00
parent 775b4ca6e7
commit 254f0536de
Signed by: daylin
GPG key ID: 950D13E9719334AD
3 changed files with 15 additions and 12 deletions

View file

@ -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 {

View file

@ -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

View file

@ -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} \