Created
February 16, 2023 10:47
-
-
Save hauleth/0a8cf6a41b0fd075fe51bfa8c3538f34 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nodes": { | |
"devenv": { | |
"inputs": { | |
"flake-compat": "flake-compat", | |
"nix": "nix", | |
"nixpkgs": "nixpkgs", | |
"pre-commit-hooks": "pre-commit-hooks" | |
}, | |
"locked": { | |
"lastModified": 1676514437, | |
"narHash": "sha256-yZ9olfUZ/yWXpFuLoxWQYQF1nqoU9tT1WGXnOY1ciqM=", | |
"owner": "cachix", | |
"repo": "devenv", | |
"rev": "584d63e93a841148f75b3b9ec2cfed2ed08c760f", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "cachix", | |
"repo": "devenv", | |
"type": "github" | |
} | |
}, | |
"flake-compat": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1673956053, | |
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", | |
"owner": "edolstra", | |
"repo": "flake-compat", | |
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "edolstra", | |
"repo": "flake-compat", | |
"type": "github" | |
} | |
}, | |
"flake-utils": { | |
"locked": { | |
"lastModified": 1667395993, | |
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"type": "github" | |
} | |
}, | |
"gitignore": { | |
"inputs": { | |
"nixpkgs": [ | |
"devenv", | |
"pre-commit-hooks", | |
"nixpkgs" | |
] | |
}, | |
"locked": { | |
"lastModified": 1660459072, | |
"narHash": "sha256-8DFJjXG8zqoONA1vXtgeKXy68KdJL5UaXR8NtVMUbx8=", | |
"owner": "hercules-ci", | |
"repo": "gitignore.nix", | |
"rev": "a20de23b925fd8264fd7fad6454652e142fd7f73", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "hercules-ci", | |
"repo": "gitignore.nix", | |
"type": "github" | |
} | |
}, | |
"lowdown-src": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1633514407, | |
"narHash": "sha256-Dw32tiMjdK9t3ETl5fzGrutQTzh2rufgZV4A/BbxuD4=", | |
"owner": "kristapsdz", | |
"repo": "lowdown", | |
"rev": "d2c2b44ff6c27b936ec27358a2653caaef8f73b8", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "kristapsdz", | |
"repo": "lowdown", | |
"type": "github" | |
} | |
}, | |
"nix": { | |
"inputs": { | |
"lowdown-src": "lowdown-src", | |
"nixpkgs": [ | |
"devenv", | |
"nixpkgs" | |
], | |
"nixpkgs-regression": "nixpkgs-regression" | |
}, | |
"locked": { | |
"lastModified": 1674055287, | |
"narHash": "sha256-WsF7VKn1ReGtDQbnB9dVUhWPAy/gR3zMBfnEnWs1gmo=", | |
"owner": "domenkozar", | |
"repo": "nix", | |
"rev": "f1e23ed9b1acb28d6f8d226f69583b73df72bd02", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "domenkozar", | |
"ref": "relaxed-flakes", | |
"repo": "nix", | |
"type": "github" | |
} | |
}, | |
"nixpkgs": { | |
"locked": { | |
"lastModified": 1675249806, | |
"narHash": "sha256-u8Rcqekusl3pMZm68hZqr6zozI8Ug5IxqOiqDLAlu1k=", | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "79feedf38536de2a27d13fe2eaf200a9c05193ba", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "NixOS", | |
"ref": "nixpkgs-unstable", | |
"repo": "nixpkgs", | |
"type": "github" | |
} | |
}, | |
"nixpkgs-regression": { | |
"locked": { | |
"lastModified": 1643052045, | |
"narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=", | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2", | |
"type": "github" | |
} | |
}, | |
"nixpkgs-stable": { | |
"locked": { | |
"lastModified": 1673800717, | |
"narHash": "sha256-SFHraUqLSu5cC6IxTprex/nTsI81ZQAtDvlBvGDWfnA=", | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "2f9fd351ec37f5d479556cd48be4ca340da59b8f", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "NixOS", | |
"ref": "nixos-22.11", | |
"repo": "nixpkgs", | |
"type": "github" | |
} | |
}, | |
"nixpkgs_2": { | |
"locked": { | |
"lastModified": 0, | |
"narHash": "sha256-Nfeua9Ua/dGHOQpzOjLtkyMyW/ysQCvZJ9Dd74QQSNk=", | |
"path": "/nix/store/hhb905xbnph362h7pryzr16m1nw007my-source", | |
"type": "path" | |
}, | |
"original": { | |
"id": "nixpkgs", | |
"type": "indirect" | |
} | |
}, | |
"pre-commit-hooks": { | |
"inputs": { | |
"flake-compat": [ | |
"devenv", | |
"flake-compat" | |
], | |
"flake-utils": "flake-utils", | |
"gitignore": "gitignore", | |
"nixpkgs": [ | |
"devenv", | |
"nixpkgs" | |
], | |
"nixpkgs-stable": "nixpkgs-stable" | |
}, | |
"locked": { | |
"lastModified": 1675337566, | |
"narHash": "sha256-jmLBTQcs1jFOn8h1Q5b5XwPfYgFOtcZ3+mU9KvfC6Js=", | |
"owner": "cachix", | |
"repo": "pre-commit-hooks.nix", | |
"rev": "5668d079583a5b594cb4e0cc0e6d84f1b93da7ae", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "cachix", | |
"repo": "pre-commit-hooks.nix", | |
"type": "github" | |
} | |
}, | |
"root": { | |
"inputs": { | |
"devenv": "devenv", | |
"nixpkgs": "nixpkgs_2" | |
} | |
} | |
}, | |
"root": "root", | |
"version": 7 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
inputs = { | |
devenv.url = "github:cachix/devenv"; | |
}; | |
outputs = { self, nixpkgs, devenv, ... } @ inputs: | |
let | |
systems = [ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ]; | |
forAllSystems = f: builtins.listToAttrs (map (name: { inherit name; value = f name; }) systems); | |
in | |
{ | |
devShells = forAllSystems | |
(system: | |
let | |
pkgs = import nixpkgs { | |
inherit system; | |
}; | |
in | |
{ | |
default = devenv.lib.mkShell { | |
inherit inputs pkgs; | |
modules = [ | |
{ | |
languages.c.enable = true; | |
languages.swift.enable = true; | |
} | |
]; | |
}; | |
}); | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main() { | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment