blob: 356a692ca506a2627addd45a79f0a1ca8ee2642a (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{
lib,
stdenv,
fetchFromGitea,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "little-things";
version = "0-unstable-2026-04-29";
src = fetchFromGitea {
domain = "gitea.arpa.li";
owner = "JustAnotherArchivist";
repo = finalAttrs.pname;
rev = "ec645c7b748fe985da01126927838f74e7cc4977";
hash = "sha256-g/468gem70MfZ81HDmbyq2J4MItkZaybK9ICCThlKsM=";
};
postPatch = ''
substituteInPlace dir-to-ia --replace-fail \
'$(git -C "''${scriptpath}" log --max-count=1 --format=%H)' \
"(${finalAttrs.src.rev}) ${finalAttrs.version}"
'';
buildPhase = ''
rm LICENSE README.md .gitignore .make-and-exec
for file in *.c; do
echo "compiling $file"
orig=$(basename "$file" ".c")
rm "$orig"
case "$orig" in
"youtube-extract-rapid") continue;;
esac
gcc -o "$orig" "$file"
rm "$file"
done
'';
installPhase = ''
install -Dt $out/bin *
'';
meta = {
description = "The little things give you away... A collection of various small helper stuff";
homepage = "https://gitea.arpa.li/JustAnotherArchivist/little-things";
license = lib.licenses.gpl3Plus;
#maintainers = with lib.maintainers; [ ];
};
})
|