Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update rust crate thiserror to v1.0.60 #13

Closed
wants to merge 11 commits into from
Closed
8 changes: 8 additions & 0 deletions .direnv/bin/nix-direnv-reload
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
dir="$(realpath $(dirname ${BASH_SOURCE[0]})/../..)"
_nix_direnv_force_reload=1 direnv exec "$dir" true
direnv reload
# direnv reload updates the mtime of .envrc. Also update the timestamp of the
# profile_rc file to keep track that we actually are up to date.
touch $dir/.direnv/{nix,flake}-profile-*.rc

1,933 changes: 1,933 additions & 0 deletions .direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,6 @@ jobs:
- name: cargo llvm-cov
run: cargo llvm-cov --locked --all-features --lcov --output-path lcov.info
- name: Upload to codecov.io
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
result
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(import
(
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in
fetchTarball {
url = lock.nodes.flake-compat.locked.url or "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}
)
{ src = ./.; }
).defaultNix
135 changes: 135 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

83 changes: 83 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
description = "Simple but blazingly fast screenshot utility";

inputs = {
flake-utils.url = "github:numtide/flake-utils";

nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/*.tar.gz";

rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};

crane = {
url = "github:ipetkov/crane";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = { self, nixpkgs, rust-overlay, flake-utils, crane }:
flake-utils.lib.eachDefaultSystem (system:
let
craneLib = crane.lib.${system};

pkgs = import nixpkgs { inherit system; overlays = [ rust-overlay.overlays.default ]; };

libPath = with pkgs; lib.makeLibraryPath [
xorg.libX11
];

nativeBuildInputs = with pkgs; [
pkg-config
];

buildInputs = with pkgs; [
pkg-config

xorg.libX11
];

cargoArtifacts = craneLib.buildDepsOnly ({
src = craneLib.cleanCargoSource (craneLib.path ./.);
inherit buildInputs nativeBuildInputs;
pname = "lqth";
});
in with pkgs; {
packages = rec {
lqth = craneLib.buildPackage {
src = craneLib.path ./.;

inherit buildInputs nativeBuildInputs cargoArtifacts;

postInstall = ''
'';

GIT_HASH = self.rev or self.dirtyRev;
};

default = lqth;
};

devShell = mkShell {
inherit buildInputs nativeBuildInputs;

packages = with pkgs; [
(rust-bin.stable.latest.default.override {
extensions = [ "rust-src" "rust-analyzer" ];
})
cargo-bloat
cargo-outdated
cargo-udeps
rust-analyzer
cargo-deny
];
LD_LIBRARY_PATH = "${libPath}";
};
}) // {
overlay = final: prev: {
inherit (self.packages.${final.system}) ytdlp-gui;
};
};
}

10 changes: 10 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(import
(
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in
fetchTarball {
url = lock.nodes.flake-compat.locked.url or "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}
)
{ src = ./.; }
).shellNix
Loading