Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
Thanks to nix-community/nix-eval-jobs for the skeleton, which was
adapted to std.
  • Loading branch information
nrdxp committed Dec 30, 2022
0 parents commit 8c3afcf
Show file tree
Hide file tree
Showing 17 changed files with 1,280 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
. "$(nix eval --raw .#__std.direnv_lib)"
use std cells //automation/devshells:default
61 changes: 61 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
.DS_Store
.idea
*.log

tmp/

# clangd
/.cache
compile_commands.json


# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

# build directory
/build
# nix-build
/result

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# std
.std
3 changes: 3 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
"plugins": ["prettier-plugin-toml"],
};
595 changes: 595 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# nix-uncached

This is a standalone implementation of [NixOS/nix#7526](https://github.com/NixOS/nix/pull/7526), so users can make use of it immediately.

## Example

In the following example we calculate all the build _and_ runtime dependencies of svn which are uncached:

```console
$ drv=$(nix-store -qd $(which svn))
$ nix-uncached $(nix-store -qR --include-outputs $drv)
/nix/store/5mbglq5ldqld8sj57273aljwkfvj22mc-subversion-1.1.4
/nix/store/9lz9yc6zgmc0vlqmn2ipcpkjlmbi51vv-glibc-2.3.4
...
```
14 changes: 14 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
(
import
(
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in
fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/009399224d5e398d03b22badca40a37ac85412a1.tar.gz";
sha256 = "sha256:0xcr9fibnapa12ywzcnlf54wrmbqqb96fmmv8043zhsycws7bpqy";
}
)
{src = ./.;}
)
.defaultNix
Loading

0 comments on commit 8c3afcf

Please sign in to comment.