begin packaging for bonsai (incomplete)

This commit is contained in:
Colin 2023-05-18 01:31:06 +00:00
parent 4f494228d3
commit 43ec95f54a
4 changed files with 83 additions and 0 deletions

View File

@ -307,6 +307,12 @@
path = ./templates/pkgs/rust;
description = "rust package fit to ship in nixpkgs";
};
pkgs.make = {
# initialize with:
# - `nix flake init -t '/home/colin/dev/nixos/#pkgs.make'`
path = ./templates/pkgs/make;
description = "default Makefile-based derivation";
};
};
};
}

View File

@ -0,0 +1,41 @@
{ stdenv
, lib
, fetchFromSourcehut
, gitUpdater
, hare
}:
stdenv.mkDerivation rec {
pname = "bonsai";
version = "1.0.0";
src = fetchFromSourcehut {
owner = "~stacyharper";
repo = pname;
rev = "v${version}";
hash = "sha256-jOtFUpl2/Aa7f8JMZf6g63ayFOi+Ci+i7Ac63k63znc=";
};
nativeBuildInputs = [
hare
];
preConfigure = ''
export HARECACHE=$(mktemp -d)
'';
installFlags = [ "PREFIX=" "DESTDIR=$(out)" ];
passthru.updateScript = gitUpdater {
rev-prefix = "v";
};
meta = with lib; {
description = "Bonsai is a Finite State Machine structured as a tree";
homepage = "https://git.sr.ht/~stacyharper/bonsai";
license = licenses.agpl3;
maintainers = with maintainers; [ colinsane ];
platforms = platforms.linux;
broken = true; # needs hare-json. see: <https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/40949/diffs>
};
}

View File

@ -11,6 +11,7 @@ let
sane-lib = import ../modules/lib pkgs;
### ADDITIONAL PACKAGES
bonsai = callPackage ./additional/bonsai { };
bootpart-uefi-x86_64 = callPackage ./additional/bootpart-uefi-x86_64 { };
browserpass-extension = callPackage ./additional/browserpass-extension { };
cargoDocsetHook = callPackage ./additional/cargo-docset/hook.nix { };

View File

@ -0,0 +1,35 @@
{ stdenv
, lib
, fetchFromGitHub
, gitUpdater
}:
stdenv.mkDerivation rec {
pname = "TODO";
version = "0.1.0";
src = fetchFromGitHub {
owner = "TODO";
repo = pname;
rev = "v${version}";
hash = "sha256-TODO";
};
nativeBuildInputs = [
];
buildInputs = [
];
passthru.updateScript = gitUpdater {
rev-prefix = "v";
};
meta = with lib; {
description = "TODO (don't end in period)";
homepage = "TODO";
license = licenses.TODO;
maintainers = with maintainers; [ colinsane ];
platforms = platforms.linux;
};
}