mirror of
https://github.com/rosenpass/rosenpass.git
synced 2025-12-05 20:40:02 -08:00
This implicates a change from nixpkgs-fmt to nixfmt. Nixfmt will become the new standard on nix formatting, sanctioned by the nixpkgs. To verify that these changes are purely in whitespace, but not semantic: git diff --ignore-all-space -w HEAD^! That will only show newline changes, make the diffing somewhat easier. Signed-off-by: wucke13 <wucke13+github@gmail.com>
35 lines
767 B
Nix
35 lines
767 B
Nix
{
|
|
runCommand,
|
|
dpkg,
|
|
rosenpass,
|
|
}:
|
|
|
|
let
|
|
inherit (rosenpass) version;
|
|
in
|
|
|
|
runCommand "rosenpass-${version}.deb" { } ''
|
|
mkdir -p packageroot/DEBIAN
|
|
|
|
cat << EOF > packageroot/DEBIAN/control
|
|
Package: rosenpass
|
|
Version: ${version}
|
|
Architecture: all
|
|
Maintainer: Jacek Galowicz <jacek@galowicz.de>
|
|
Depends:
|
|
Description: Post-quantum-secure VPN tool Rosenpass
|
|
Rosenpass is a post-quantum-secure VPN
|
|
that uses WireGuard to transport the actual data.
|
|
EOF
|
|
|
|
|
|
mkdir -p packageroot/usr/bin
|
|
install -m755 -t packageroot/usr/bin ${rosenpass}/bin/*
|
|
|
|
mkdir -p packageroot/etc/rosenpass
|
|
cp -r ${rosenpass}/lib/systemd packageroot/etc/
|
|
cp ${./example.toml} packageroot/etc/rosenpass/example.toml
|
|
|
|
${dpkg}/bin/dpkg --build packageroot $out
|
|
''
|