Compare commits

...
Author SHA1 Message Date
müde
4f08849eb5 use stdenv.hostPlatform.system instead of deprecated system
Some checks failed
Rust / build (push) Failing after 5s
2026-08-01 01:59:12 +02:00
müde
f99cfd48bc cargo update 2026-07-31 23:48:42 +02:00
müde
49e1f5f9d7 nix flake update 2026-07-31 23:39:51 +02:00
müde
8a8522c93d replace nix-filter with crane source filtering 2026-07-31 23:02:48 +02:00
3 changed files with 420 additions and 346 deletions

725
Cargo.lock generated

File diff suppressed because it is too large Load diff

34
flake.lock generated
View file

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"crane": { "crane": {
"locked": { "locked": {
"lastModified": 1779130139, "lastModified": 1785520756,
"narHash": "sha256-BLrtr42azquO7MdGFU5a7KiMl3YpFlTeIXqy1fT5GlQ=", "narHash": "sha256-eGUJ3OJ+P4R6x9bN2xx/VTwhrhBt3U0CKtcY/B5xp50=",
"owner": "ipetkov", "owner": "ipetkov",
"repo": "crane", "repo": "crane",
"rev": "edb38893982a3338972bb4a2ec7ce7c29ba10fd9", "rev": "fe4c37e1c9e4d5135a89c7f6a734da02e778c34b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -15,28 +15,13 @@
"type": "github" "type": "github"
} }
}, },
"nix-filter": {
"locked": {
"lastModified": 1757882181,
"narHash": "sha256-+cCxYIh2UNalTz364p+QYmWHs0P+6wDhiWR4jDIKQIU=",
"owner": "numtide",
"repo": "nix-filter",
"rev": "59c44d1909c72441144b93cf0f054be7fe764de5",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "nix-filter",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1779622335, "lastModified": 1785386831,
"narHash": "sha256-ViA62qtL5za7V3d5I8OA9q9JcFhsVAiL5jVHwEclWqk=", "narHash": "sha256-sPS3CaXH8RAT3FZRuy4VcV47iuYIWMMfa0GbyJKC3o4=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "705e9929918b43bd7b715dc0a878ac870449bb03", "rev": "21ea275a7c46aef9d4d6ddc962e6d562e9d94183",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -49,7 +34,6 @@
"root": { "root": {
"inputs": { "inputs": {
"crane": "crane", "crane": "crane",
"nix-filter": "nix-filter",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
} }
@ -61,11 +45,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1775636079, "lastModified": 1785360170,
"narHash": "sha256-pc20NRoMdiar8oPQceQT47UUZMBTiMdUuWrYu2obUP0=", "narHash": "sha256-XE1lKgQ3eIO3E7zWryqcRsax+mYXod/5RHBn4YaR9YE=",
"owner": "numtide", "owner": "numtide",
"repo": "treefmt-nix", "repo": "treefmt-nix",
"rev": "790751ff7fd3801feeaf96d7dc416a8d581265ba", "rev": "d1187f8bc71fb8aab02395869ec3f5c1920f75c0",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -3,7 +3,6 @@
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05"; nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
nix-filter.url = "github:numtide/nix-filter";
crane.url = "github:ipetkov/crane"; crane.url = "github:ipetkov/crane";
treefmt-nix = { treefmt-nix = {
url = "github:numtide/treefmt-nix"; url = "github:numtide/treefmt-nix";
@ -16,7 +15,6 @@
self, self,
nixpkgs, nixpkgs,
crane, crane,
nix-filter,
treefmt-nix, treefmt-nix,
}: }:
let let
@ -52,16 +50,7 @@
let let
craneLib = crane.mkLib pkgs; craneLib = crane.mkLib pkgs;
commonArgs = { commonArgs = {
src = nix-filter.lib.filter { src = craneLib.cleanCargoSource ./.;
root = ./.;
include = [
./Cargo.toml
./Cargo.lock
./src
./README.md
./LICENSE
];
};
strictDeps = true; strictDeps = true;
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
pkg-config pkg-config
@ -102,7 +91,7 @@
}; };
overlays.default = final: prev: { overlays.default = final: prev: {
servicepoint-cli = self.legacyPackages."${prev.system}".servicepoint-cli; servicepoint-cli = self.legacyPackages."${prev.stdenv.hostPlatform.system}".servicepoint-cli;
}; };
devShells = forAllSystems ( devShells = forAllSystems (