Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(dae): sync upstream release (v0.6.0rc1) #25

Merged
merged 3 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
result*
6 changes: 6 additions & 0 deletions dae/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"version": "v0.6.0rc1",
"rev": "v0.6.0rc1",
"hash": "sha256-A8ecYE0p+FoW0yskprvvy73pup/eR4bx8HNa55OorwY=",
"vendorHash": "sha256-NzPPf/KwuRCMmOGwk9k3ndYojDF9B/hXBPQ8ySan3t8="
}
10 changes: 5 additions & 5 deletions dae/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
, fetchFromGitHub
, buildGoModule
}:
let
metadata = builtins.fromJSON (builtins.readFile ./metadata.json);
in
buildGoModule rec {
pname = "dae";
version = "unstable-2023-09-04";
inherit (metadata) version vendorHash;

src = fetchFromGitHub {
owner = "daeuniverse";
repo = pname;
rev = "8334868905096abc4a2e94d39f831f6bae8e86d3";
hash = "sha256-aOL0rwjRES0V3PFmBiHJcNiyOcGKGNY78Wqgnbk2cG0=";
inherit (metadata) rev hash;
fetchSubmodules = true;
};

vendorHash = "sha256-rZwK+mYWJqgLFhzwZTfCC4tIg2gtNtx7Lu/fyOL3ozA=";

proxyVendor = true;

nativeBuildInputs = [ clang ];
Expand Down
39 changes: 39 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# justfile
# cheatsheet: https://cheatography.com/linux-china/cheat-sheets/justfile/

# define alias

# set options
set positional-arguments := true

# default recipe to display help information
default:
@just --list

# build pkg
build pkg:
@nix build .#{{ pkg }}

# check version
version pkg:
@./result/bin/{{ pkg }} --version

# update all flake inputs
update:
@nix flake update

# update a particular flake input
update-input input:
@nix flake lock --update-input {{ input }}

# nix-prefetch-url
prefetch-url url:
@nix-prefetch-url --type sha256 '{{ url }}' | xargs nix hash to-sri --type sha256

# nix-prefetch-git
prefetch-git repo rev:
@nix-prefetch-git --url 'git@github.com:{{ repo }}' --rev '{{ rev }}' --fetch-submodules --quiet

# stage all files
add:
@git add .
Loading