pkgs/netns-proxy: init
This commit is contained in:
parent
ac017d9cf9
commit
585fb9749f
18
flake/outputs/nixpkgs.nix
Normal file
18
flake/outputs/nixpkgs.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{ self, ... }:
|
||||||
|
let
|
||||||
|
overlays = [
|
||||||
|
self.overlays.default
|
||||||
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
perSystem =
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
nixpkgs = {
|
||||||
|
config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
};
|
||||||
|
inherit overlays;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
11
flake/outputs/overlays.nix
Normal file
11
flake/outputs/overlays.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
flake.overlays = {
|
||||||
|
default =
|
||||||
|
_final: prev:
|
||||||
|
prev.lib.packagesFromDirectoryRecursive {
|
||||||
|
inherit (prev) callPackage;
|
||||||
|
directory = ../../pkgs;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
7
flake/outputs/packages.nix
Normal file
7
flake/outputs/packages.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
perSystem =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
legacyPackages = pkgs;
|
||||||
|
};
|
||||||
|
}
|
17
pkgs/netns-proxy/package.nix
Normal file
17
pkgs/netns-proxy/package.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{ rustPlatform, fetchFromGitHub, ... }:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
name = "netns-proxy";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "fooker";
|
||||||
|
repo = "netns-proxy";
|
||||||
|
rev = "6d9ccbfde4375cd614735ea5f6ee5aba2b6cfd2b";
|
||||||
|
fetchSubmodules = false;
|
||||||
|
sha256 = "sha256-N+my6cTuA7yNoYxocpRiLNcy7OwrJLvO2cGLJGv8a/I=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoLock = {
|
||||||
|
lockFile = src + /Cargo.lock;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue