Add mosh overlay for newer version

This commit is contained in:
Malte Tammena 2021-06-19 09:28:01 +02:00
parent 98510d6735
commit 5bc1db9f50
3 changed files with 46 additions and 0 deletions

View file

@ -120,6 +120,22 @@
"type": "github"
}
},
"mosh": {
"flake": false,
"locked": {
"lastModified": 1589774465,
"narHash": "sha256-iEc69M2hzUFCIA1+Wlz5UmbQFwQ0uLwdgtbwrhMeFZw=",
"owner": "mobile-shell",
"repo": "mosh",
"rev": "03087e7a761df300c2d8cd6e072890f8e1059dfa",
"type": "github"
},
"original": {
"owner": "mobile-shell",
"repo": "mosh",
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1623569835,
@ -267,6 +283,7 @@
"emulator-2a": "emulator-2a",
"gruvbox-material-gtk": "gruvbox-material-gtk",
"home-manager": "home-manager",
"mosh": "mosh",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_4",
"nixpkgs-master": "nixpkgs-master",

View file

@ -23,6 +23,10 @@
url = "github:swaywm/wlroots";
flake = false;
};
inputs.mosh = {
url = "github:mobile-shell/mosh";
flake = false;
};
outputs = { self, nixpkgs, nixos-hardware, home-manager, ... }@inputs:
let
@ -133,6 +137,7 @@
# Use some packages from master while unstable is lacking behind
bleeding-edge-overlay
(import ./overlays/sway.nix)
(import ./overlays/mosh.nix)
];
environment.systemPackages = [ emulator-2a ];

24
overlays/mosh.nix Normal file
View file

@ -0,0 +1,24 @@
self: super:
let lock = builtins.fromJSON (builtins.readFile ../flake.lock);
in {
mosh = super.mosh.overrideAttrs (old: {
version = lock.nodes.mosh.locked.rev;
src = super.fetchFromGitHub {
owner = lock.nodes.mosh.locked.owner;
repo = lock.nodes.mosh.locked.repo;
rev = lock.nodes.mosh.locked.rev;
sha256 = lock.nodes.mosh.locked.narHash;
};
patches = super.pkgs.lib.traceVal builtins.filter (patch:
builtins.isPath patch
) old.patches;
});
#patches = [
# "${super.pkgs}/pkgs/tools/networking/mosh/ssh_path.patch"
# "${super.pkgs}/pkgs/tools/networking/mosh/mosh-client_path.patch"
# "${super.pkgs}/pkgs/tools/networking/mosh/utempter_path.patch"
# # Fix build with bash-completion 2.10
# "${super.pkgs}/pkgs/tools/networking/mosh/bash_completion_datadir.patch"
#];
}