flake: don't make flurry a recursive package (#39)

This commit is contained in:
Noa Aarts 2024-10-23 09:17:50 +02:00 committed by GitHub
parent 8d67fdeb7e
commit 70f018e05b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 32 additions and 18 deletions

View file

@ -11,11 +11,11 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- run: nix shell nixpkgs#cargo --command cargo update - run: nix shell -L nixpkgs#cargo --command cargo update
- run: nix shell nixpkgs#git --command git add Cargo.lock - run: nix shell -L nixpkgs#git --command git add Cargo.lock
- name: Check flake - name: Check flake
uses: DeterminateSystems/flake-checker-action@main uses: DeterminateSystems/flake-checker-action@main
- run: nix build - run: nix build -L
- name: Update Nix Flake Lock - name: Update Nix Flake Lock
uses: DeterminateSystems/update-flake-lock@main uses: DeterminateSystems/update-flake-lock@main
with: with:
@ -23,3 +23,4 @@ jobs:
pr-labels: | pr-labels: |
dependencies dependencies
automated automated
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}

36
flake.lock generated
View file

@ -2,9 +2,7 @@
"nodes": { "nodes": {
"fenix": { "fenix": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": "nixpkgs",
"nixpkgs"
],
"rust-analyzer-src": "rust-analyzer-src" "rust-analyzer-src": "rust-analyzer-src"
}, },
"locked": { "locked": {
@ -69,7 +67,7 @@
"flurry": { "flurry": {
"inputs": { "inputs": {
"fenix": "fenix_3", "fenix": "fenix_3",
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_3"
}, },
"locked": { "locked": {
"lastModified": 1729619105, "lastModified": 1729619105,
@ -87,21 +85,37 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1729632202, "lastModified": 1729413321,
"narHash": "sha256-BqWFOqG9Iuzf5wm9dyVWPeH1SPxSjCxo3inUSnYqxaQ=", "narHash": "sha256-I4tuhRpZFa6Fu6dcH9Dlo5LlH17peT79vx1y1SpeKt0=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5a95c26209c2e136ef7da309824f562253b5fd7a", "rev": "1997e4aa514312c1af7e2bda7fad1644e778ff26",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "master", "ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": {
"lastModified": 1729413321,
"narHash": "sha256-I4tuhRpZFa6Fu6dcH9Dlo5LlH17peT79vx1y1SpeKt0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "1997e4aa514312c1af7e2bda7fad1644e778ff26",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1729568966, "lastModified": 1729568966,
"narHash": "sha256-t7r899w6fZh9SOOgDykmqUz7DwK9Xw1CwFLri6Ga0Bs=", "narHash": "sha256-t7r899w6fZh9SOOgDykmqUz7DwK9Xw1CwFLri6Ga0Bs=",
@ -117,7 +131,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_3": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1729619492, "lastModified": 1729619492,
"narHash": "sha256-VPd3fRyxlIgYxQ8z5uq6tp13wG/cYvPfZh0Z6QNlt1k=", "narHash": "sha256-VPd3fRyxlIgYxQ8z5uq6tp13wG/cYvPfZh0Z6QNlt1k=",
@ -136,7 +150,7 @@
"root": { "root": {
"inputs": { "inputs": {
"fenix": "fenix", "fenix": "fenix",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs_2",
"tsunami": "tsunami" "tsunami": "tsunami"
} }
}, },
@ -195,7 +209,7 @@
"inputs": { "inputs": {
"fenix": "fenix_2", "fenix": "fenix_2",
"flurry": "flurry", "flurry": "flurry",
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_4"
}, },
"locked": { "locked": {
"lastModified": 1729621351, "lastModified": 1729621351,

View file

@ -1,9 +1,8 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/master"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
fenix = { fenix = {
url = "github:nix-community/fenix"; url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
}; };
tsunami = { tsunami = {
url = "github:itepastra/tsunami"; url = "github:itepastra/tsunami";
@ -35,10 +34,10 @@
rec { rec {
default = flurry; default = flurry;
flurry = flurry =
(pkgs.makeRustPlatform { cargo = toolchain; rustc = toolchain; }).buildRustPackage rec { (pkgs.makeRustPlatform { cargo = toolchain; rustc = toolchain; }).buildRustPackage {
pname = "flurry"; pname = "flurry";
version = "0.1.0"; version = "0.1.0";
cargoLock.lockFile = "${src}/Cargo.lock"; cargoLock.lockFile = ./Cargo.lock;
src = fs.toSource { src = fs.toSource {
root = ./.; root = ./.;
fileset = fs.unions [ fileset = fs.unions [