To build the derivation just run nix-build -A rustdesk ./rustdesk.nix
Created
January 11, 2024 11:07
-
-
Save Karitham/635cb637868105441f41b4b56e5d53c0 to your computer and use it in GitHub Desktop.
nixos rustdesk from github deb pkg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source $stdenv/setup | |
PATH=$dpkg/bin:$PATH | |
mkdir -p $out | |
dpkg -x $src $out | |
cp $out/usr/lib/rustdesk/rustdesk $out/usr/bin/rustdesk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ nixpkgs ? import <nixpkgs> {} }: | |
let | |
pkgs = nixpkgs; | |
stdenv = nixpkgs.stdenv; | |
in rec { | |
dumb-rd = stdenv.mkDerivation { | |
name = "dumb-rd"; | |
builder = ./builder.sh; | |
buildInputs = [ pkgs.dpkg ]; | |
src = nixpkgs.fetchurl { | |
url = "https://github.com/rustdesk/rustdesk/releases/download/1.2.3/rustdesk-1.2.3-x86_64.deb"; | |
sha256 = "sha256-v6a6Y7J0Ws6Hss3UkA3lncozknKo/fYKgPFwIDa3EXg="; | |
}; | |
}; | |
rustdesk = nixpkgs.buildFHSUserEnv { | |
name = "rustdesk"; | |
targetPkgs = pkgs: [ dumb-rd ]; | |
multiPkgs = pkgs: [ pkgs.dpkg ]; | |
runScript = "rustdesk"; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment