mirror of https://github.com/o2sh/onefetch.git
5 changed files with 69 additions and 0 deletions
@ -0,0 +1,27 @@
@@ -0,0 +1,27 @@
|
||||
{ |
||||
"nodes": { |
||||
"nixpkgs": { |
||||
"locked": { |
||||
"lastModified": 1742800061, |
||||
"narHash": "sha256-oDJGK1UMArK52vcW9S5S2apeec4rbfNELgc50LqiPNs=", |
||||
"owner": "NixOS", |
||||
"repo": "nixpkgs", |
||||
"rev": "1750f3c1c89488e2ffdd47cab9d05454dddfb734", |
||||
"type": "github" |
||||
}, |
||||
"original": { |
||||
"owner": "NixOS", |
||||
"ref": "nixpkgs-unstable", |
||||
"repo": "nixpkgs", |
||||
"type": "github" |
||||
} |
||||
}, |
||||
"root": { |
||||
"inputs": { |
||||
"nixpkgs": "nixpkgs" |
||||
} |
||||
} |
||||
}, |
||||
"root": "root", |
||||
"version": 7 |
||||
} |
||||
@ -0,0 +1,36 @@
@@ -0,0 +1,36 @@
|
||||
{ |
||||
description = "onefetch"; |
||||
|
||||
inputs = { |
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; |
||||
}; |
||||
|
||||
outputs = { |
||||
self, |
||||
nixpkgs, |
||||
... |
||||
}: let |
||||
forAllSystems = fn: nixpkgs.lib.genAttrs [ |
||||
"aarch64-darwin" |
||||
"aarch64-linux" |
||||
"i686-linux" |
||||
"x86_64-linux" |
||||
"x86_64-darwin" |
||||
] (system: fn nixpkgs.legacyPackages.${system}); |
||||
in { |
||||
devShells = forAllSystems (pkgs: { |
||||
default = pkgs.mkShell { |
||||
name = "onefetch"; |
||||
packages = with pkgs; [ |
||||
cargo |
||||
rustc |
||||
clippy |
||||
rustfmt |
||||
rust-analyzer |
||||
cmake |
||||
]; |
||||
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; |
||||
}; |
||||
}); |
||||
}; |
||||
} |
||||
Loading…
Reference in new issue