Simple tool for automatic file management

chore(ci): add builds.sr.ht definition

hauleth.dev 60bba337 a1cfe75f

verified
Changed files
+38
nix
+5
.build.yml
···
···
+
image: nixos/23.05
+
environment:
+
NIX_CONFIG: "experimental-features = nix-command flakes"
+
tasks:
+
- build: nix build ./ptsd
+5
flake.nix
···
}: {
formatter = pkgs.alejandra;
devenv.shells.default = {
languages.rust = {
enable = true;
···
}: {
formatter = pkgs.alejandra;
+
packages = {
+
default = self'.packages.ptsd;
+
ptsd = pkgs.callPackage ./nix/ptsd.nix {};
+
};
+
devenv.shells.default = {
languages.rust = {
enable = true;
+28
nix/ptsd.nix
···
···
+
{
+
lib,
+
rustPlatform,
+
stdenv,
+
darwin,
+
libiconv,
+
scdoc,
+
}:
+
rustPlatform.buildRustPackage {
+
pname = "ptsd";
+
version = "0.0.1";
+
+
src = ./..;
+
+
cargoLock.lockFile = ../Cargo.lock;
+
+
nativeBuildInputs = [
+
scdoc
+
];
+
+
buildInputs =
+
[]
+
++ lib.lists.optionals stdenv.isDarwin (with darwin.apple_sdk; [
+
libiconv
+
darwin.libobjc
+
frameworks.Foundation
+
]);
+
}