mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
Koishi: move to dualboot, Goliath: deprecate, Flake: clean up 5
flake-utils
This commit is contained in:
parent
88e2f45b0b
commit
d9c859e261
35 changed files with 446 additions and 1119 deletions
|
|
@ -9,4 +9,5 @@ final: prev: {
|
|||
waybar-gpg = final.callPackage ./waybar-gpg { };
|
||||
waybar-konawall = final.callPackage ./waybar-konawall { };
|
||||
hedgedoc-cli = final.callPackage ./hedgedoc-cli.nix { };
|
||||
gensokyoZone = final.callPackage ./gensokyoZone { };
|
||||
}
|
||||
|
|
|
|||
BIN
overlays/local/gensokyoZone/cute.png
Normal file
BIN
overlays/local/gensokyoZone/cute.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1 MiB |
22
overlays/local/gensokyoZone/default.nix
Normal file
22
overlays/local/gensokyoZone/default.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ writeTextFile, linkFarm }:
|
||||
|
||||
let
|
||||
mewp = writeTextFile {
|
||||
name = "index.html";
|
||||
text = ''
|
||||
<html>
|
||||
<head>
|
||||
<title>Gensokyo Zone</title>
|
||||
</head>
|
||||
<body>
|
||||
<img src="cute.png">
|
||||
</body>
|
||||
</html>
|
||||
'';
|
||||
};
|
||||
mewy = "${./cute.png}";
|
||||
in
|
||||
linkFarm "index" [
|
||||
{ name = "index.html"; path = mewp; }
|
||||
{ name = "cute.png"; path = mewy; }
|
||||
]
|
||||
60
overlays/local/pigpio.nix
Normal file
60
overlays/local/pigpio.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{ stdenv, glibc, fetchFromGitHub, cmake, writeTextFile
|
||||
,
|
||||
}:
|
||||
|
||||
let
|
||||
version = "79";
|
||||
pname = "pigpio";
|
||||
|
||||
pkgConfig = writeTextFile {
|
||||
name = "${pname}.pc";
|
||||
text = ''
|
||||
prefix=@out@
|
||||
exec_prefix=''${prefix}
|
||||
includedir=''${prefix}/include
|
||||
libdir=''${prefix}/lib
|
||||
|
||||
Name: pigpio
|
||||
Description: GPIO library for Raspberry Pi computers
|
||||
Version: ${version}
|
||||
Libs: -L''${libdir} -lpigpio -lpthread -lm
|
||||
Cflags: -I''${includedir}
|
||||
'';
|
||||
};
|
||||
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
inherit pname version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "joan2937";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0wgcy9jvd659s66khrrp5qlhhy27464d1pildrknpdava19b1r37";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./Pi4Revision.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glibc
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "GPIO library for the Raspberry Pi";
|
||||
homepage = "http://abyz.me.uk/rpi/pigpio/index.html";
|
||||
license = licenses.unlicense;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
make install
|
||||
mkdir -p $out/lib/pkgconfig
|
||||
substitute ${pkgConfig} $out/lib/pkgconfig/pigpio.pc --subst-var out
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue