Koishi: move to dualboot, Goliath: deprecate, Flake: clean up 5

flake-utils
This commit is contained in:
kat witch 2022-05-19 08:53:47 +01:00 committed by kat
parent 88e2f45b0b
commit d9c859e261
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
35 changed files with 446 additions and 1119 deletions

View file

@ -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 { };
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 MiB

View 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
View 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
'';
}