Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Bob
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Bob
Commits
e30e45bb
Verified
Commit
e30e45bb
authored
1 year ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
chore: packaging
parent
0efffcdb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
flake.lock
+22
-5
22 additions, 5 deletions
flake.lock
flake.nix
+17
-30
17 additions, 30 deletions
flake.nix
with
39 additions
and
35 deletions
flake.lock
+
22
−
5
View file @
e30e45bb
{
"nodes": {
"nix-filter": {
"locked": {
"lastModified": 1687178632,
"narHash": "sha256-HS7YR5erss0JCaUijPeyg2XrisEb959FIct3n2TMGbE=",
"owner": "numtide",
"repo": "nix-filter",
"rev": "d90c75e8319d0dd9be67d933d8eb9d0894ec9174",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "nix-filter",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1688
500189
,
"narHash": "sha256-
djYYiY4lzJOlXOnTHytH6BUugrxHDZjuGxTSrU4gt4M
=",
"lastModified": 1688
679045
,
"narHash": "sha256-
t3xGEfYIwhaLTPU8FLtN/pLPytNeDwbLI6a7XFFBlGo
=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "
78419edadf0fabbe5618643bd850b2f2198ed060
",
"rev": "
3c7487575d9445185249a159046cc02ff364bff8
",
"type": "github"
},
"original": {
"
id
": "
n
ix
pkgs
",
"
owner
": "
N
ix
OS
",
"ref": "nixos-unstable",
"type": "indirect"
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nix-filter": "nix-filter",
"nixpkgs": "nixpkgs",
"utils": "utils"
}
...
...
This diff is collapsed.
Click to expand it.
flake.nix
+
17
−
30
View file @
e30e45bb
{
description
=
"Bob: The HTML and HTML fragment builder"
;
inputs
=
{
nixpkgs
.
url
=
"nixpkgs/nixos-unstable"
;
utils
.
url
=
"github:numtide/flake-utils"
;
};
nixpkgs
.
url
=
github
:
NixOS/nixpkgs/nixos-unstable
;
utils
.
url
=
github
:
numtide/flake-utils
;
nix-filter
.
url
=
github
:
numtide/nix-filter
;
};
outputs
=
{
self
,
nixpkgs
,
...
}
@
inputs
:
let
# to work with older version of flakes
outputs
=
{
self
,
nixpkgs
,
utils
,
nix-filter
}:
let
# to work with older version of flakes
lastModifiedDate
=
self
.
lastModifiedDate
or
self
.
lastModified
or
"19700101"
;
# System types to support.
supportedSystems
=
[
"x86_64-linux"
"x86_64-darwin"
"aarch64-linux"
"aarch64-darwin"
];
...
...
@@ -21,18 +23,9 @@
rootPath
=
./.
;
releaseJson
=
builtins
.
fromJSON
(
builtins
.
readFile
"
${
rootPath
}
/release.json"
);
currentVersion
=
releaseJson
.
version
;
in
{
# Provide some binary packages for selected system types.
packages
=
forAllSystems
(
system
:
let
pkgs
=
nixpkgs
.
legacyPackages
.
${
system
};
in
{
bob
=
pkgs
.
buildGoModule
{
currentVersion
=
releaseJson
.
version
;
in
(
utils
.
lib
.
eachDefaultSystem
(
system
:
rec
{
packages
.
app
=
nixpkgs
.
legacyPackages
.
${
system
}
.
buildGoModule
{
pname
=
"bob"
;
version
=
currentVersion
;
...
...
@@ -48,14 +41,14 @@
# it should be "out-of-band" with other tooling (eg. gomod2nix).
# To begin with it is recommended to set this, but one must
# remeber to bump this hash when your dependencies change.
#vendorSha256 = pkgs.lib.fakeSha256;
#vendorSha256 =
nix
pkgs.
legacyPackages.${system}.
lib.fakeSha256;
vendorSha256
=
"sha256-XdB+u94Rqsb29jVs4miyOq1NEYaVJHWFXg6QebFJzNQ="
;
excludedPackages
=
[
"development"
];
doCheck
=
false
;
meta
=
with
pkgs
.
lib
;
{
meta
=
with
nix
pkgs
.
legacyPackages
.
${
system
}
.
lib
;
{
description
=
"Bob: The HTML and HTML fragment builder"
;
homepage
=
"https://gitlab.schukai.com/oss/bob"
;
license
=
licenses
.
mit
;
...
...
@@ -64,12 +57,6 @@
};
});
# The default package for 'nix build'. This makes sense if the
# flake provides only one package or there is a clear "main"
# package.
defaultPackage
=
forAllSystems
(
system
:
self
.
packages
.
${
system
}
.
bob
);
};
}
defaultPackage
=
packages
.
app
;
}));
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment