Something went wrong. Try again.
Simple tool for automatic file management
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667# SPDX-FileCopyrightText: 2024 Łukasz Niemier <#@hauleth.dev>## SPDX-License-Identifier: EUPL-1.2{ inputs = { nixpkgs.url = "flake:nixpkgs"; systems.url = "github:nix-systems/default"; flake-parts.url = "github:hercules-ci/flake-parts"; fenix = { url = "github:nix-community/fenix"; inputs.nixpkgs.follows = "nixpkgs"; }; nickel.url = "github:tweag/nickel/stable"; devenv.url = "github:cachix/devenv"; };
nixConfig = { extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="; extra-substituters = "https://devenv.cachix.org"; };
outputs = {flake-parts, ...} @ inputs: flake-parts.lib.mkFlake {inherit inputs;} { imports = [ inputs.devenv.flakeModule ];
systems = import inputs.systems;
perSystem = { self', pkgs, inputs', ... }: { formatter = pkgs.alejandra;
packages = { default = self'.packages.ptsd; ptsd = pkgs.callPackage ./nix/ptsd.nix {}; };
devenv.shells.default = { languages.rust = { enable = true; };
packages = [ pkgs.scdoc pkgs.cargo-nextest pkgs.cargo-outdated pkgs.reuse inputs'.nickel.packages.default ] ++ pkgs.lib.lists.optionals pkgs.stdenv.isDarwin (let inherit (pkgs.darwin.apple_sdk) frameworks; in [ frameworks.Foundation pkgs.libiconv pkgs.darwin.libobjc ]); }; }; };}