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
|
||||
{
|
||||
packages = forAllSystems (pkgs: rec {
|
||||
default = pkgs.callPackage ./meta.nix {inherit tunnel;};
|
||||
utils = pkgs.callPackage ./meta.nix { inherit tunnel; };
|
||||
tunnel = pkgs.callPackage ./tunnel-go { };
|
||||
default = utils;
|
||||
});
|
||||
devShells = forAllSystems (pkgs: {
|
||||
default = pkgs.mkShell {
|
||||
|
|
19
meta.nix
19
meta.nix
|
@ -1,20 +1,19 @@
|
|||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
|
||||
# packages
|
||||
tunnel,
|
||||
...
|
||||
}:stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
# packages
|
||||
tunnel,
|
||||
...
|
||||
}:
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "meta";
|
||||
version = "unstable";
|
||||
|
||||
# src =
|
||||
buildInputs = [
|
||||
tunnel
|
||||
];
|
||||
buildInputs = [ tunnel ];
|
||||
|
||||
phases = [ "installPhase"];
|
||||
phases = [ "installPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
|
|
|
@ -15,7 +15,10 @@ buildGoModule rec {
|
|||
src = cleanSource ./.;
|
||||
vendorHash = "sha256-PwZJMEVaPHqZs7bM+9XLxVA36GfV3EN6bja86hkfO90=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd ${pname} \
|
||||
|
|
Loading…
Reference in a new issue